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