Skip to main content
Last updated: 15 May 2026

Delete a document from Discovery Engine

Delete a document from the datastore

A rake task exists for dire emergencies where a piece of content has not been correctly deleted from the datastore via the normal channels. This can happen when someone deletes a document directly from the Publishing API database without firing the callbacks that trigger a message queue unpublish message.

$ kubectl -n apps exec -it deploy/search-admin -- bundle exec rake document:delete_document[<content_id>]