Delete document in elastic in ingest based on condition

Filebeat and ingest pipeline are data ingestion components and they can't be used to delete documents.

Is this a case that your application logs when a document is deleted?