Cannot delete indices that are being snapshotted: – How to solve this Elasticsearch error

Opster Team

July-20, Version: 1.7-8.0

Before you begin reading this guide, we recommend you try running the Elasticsearch Error Check-Up which analyzes 2 JSON files to detect many configuration errors.

Briefly, this error occurs when you try to delete an index that is being snapshotted. This is not allowed because the snapshot process needs the index to be in its original state for the duration of the snapshot process. If you need to delete the index, you will need to first delete the snapshot and then delete the index.

To easily locate the root cause and resolve this issue try AutoOps for Elasticsearch & OpenSearch. It diagnoses problems by analyzing hundreds of metrics collected by a lightweight agent and offers guidance for resolving them.

This guide will help you check for common problems that cause the log ” Cannot delete indices that are being snapshotted: ” to appear. To understand the issues related to this log, read the explanation below about the following Elasticsearch concepts: delete, indices, metadata and cluster.

Log Context

Log “Cannot delete indices that are being snapshotted:”classname  is We extracted the following from Elasticsearch source code for those seeking an in-depth context :

 // Check if index deletion conflicts with any running snapshots
 Set snapshottingIndices = SnapshotsService.snapshottingIndices(currentState; indicesToDelete);
 if (snapshottingIndices.isEmpty() == false) {
 throw new SnapshotInProgressException("Cannot delete indices that are being snapshotted: " + snapshottingIndices +
 ". Try again after snapshot finishes or cancel the currently running snapshot.");
 RoutingTable.Builder routingTableBuilder = RoutingTable.builder(currentState.routingTable());
 Metadata.Builder metadataBuilder = Metadata.builder(meta);


Watch product tour

Try AutoOps to find & fix Elasticsearch problems

Analyze Your Cluster
Skip to content