Elastic 9 | Delete indices and data streams from CLI

Delete Elasticsearch indices from the CLI in Elastic 9 and fix the data stream write index cannot be deleted error.