@Override
public void removeSnapshot(String name) throws IOException {
SnapshotDeletionPolicy snapshotter = getSnapshotter();
Map<String, String> existingSnapshots = snapshotter.getSnapshots();
if (existingSnapshots.containsKey(name)) {
snapshotter.release(name);
// now delete the snapshot file stored in the snapshots directory under the shard
Path snapshotFilePath = new Path(getSnapshotsDirectoryPath(), name);
getFileSystem().delete(snapshotFilePath, true);