Index comes back after DELETE

First I DELETE replication rule
DELETE _plugins/_replication/_autofollow
{
“leader_alias” : “connection-alias”,
“name”: “rule-name”
}
and STOP the index:
POST _plugins/_replication/my_index/_stop
{}
after that i DELETE the index:
DELETE /my_index
and it comes right back"
GET _cat/indices

What am I doing wrong?

Is there any other autofollow rule creating this index ? Use the autofollow_stats API to check that.

You use the _cat/tasks API after stopping replication to ensure that the index and shard level replication tasks have stopped.

1 Like

Thank you, soosinha! All is clear now, indices are not reappearing any longer:)