Error while delete ml anomaly job

It sounds like you might have lost your .ml-config index, or the node that index is on is inaccessible.

Which version of Elasticsearch are you using?

Does this show anything wrong?

GET _cat/indices/.ml*?v