Elasticsearch ILM failed delete closed indices

Yes, ILM can delete closed indices, but the error you're seeing indicates a problem with waiting for shard history leases to expire before deletion. To resolve this, check your cluster health, ensure no settings are blocking deletion, review your ILM policy, and consider manually moving the ILM step forward if it's stuck in an error state.