In addition to reading this guide, run the Elasticsearch Health Check-Up. Detect problems and improve performance by analyzing your shard sizes, threadpools, memory, snapshots, disk watermarks and many more. Free tool that requires no installation with +1000 users.
Run the Elasticsearch check-up to receive recommendations like this:
DELETE is an Elasticsearch API which removes a document from a specific index. This API requires an index name and _id document to delete the document.
Delete a document
DELETE /my_index/_doc/1
Notes
A delete request throws 404 error code if the document does not already exist in the index.
If you want to delete a set of documents that matches a query, you need to use delete by query API.
Run the Elasticsearch check-up to receive recommendations like this: