Document has been deleted

From time to time I will be told of a “Document has been deleted” message from a view in a database.

Yes, the document was deleted. and Yes Shift-F9 will make the view better.

How to I prevent these phantom documents from staying in views after they are deleted? Or any tricks to making them self-clean?

Subject: Are the documents deleted via the back-end?

As far as I know, this behaviour shouldn’t occur if 1) the view’s index update settings are set to the defaults (autoupdate), and 2) the documents are deleted via the front-end (del button from within doc or view, or view action). If, on the other hand, the documents are deleted via the backend (for example, a script), while the front-end view is open (e.g. in another tab), the view doens’t get a trigger to update, and you might want to force an update (view.refresh) in the backend script.