Delete data stream and all it's index

I have a test data stream. it works fine. But now I am trying to delete it and I can't

When I do delete via command or via GUI it recreates it self

DELETE /_data_stream/msyos1-log

I can't delete index template as well. it gives me this error.
and can not delete data stream as it recreats it self.

{
"error": {
"root_cause": [
{
"type": "illegal_argument_exception",
"reason": "unable to remove composable templates [msyos1-log] as they are in use by a data streams [msyos1-log]"
}
],
"type": "illegal_argument_exception",
"reason": "unable to remove composable templates [msyos1-log] as they are in use by a data streams [msyos1-log]"
},
"status": 400
}

How do I delete them?

How are you sending data to this data stream?

The only reason I can think for a data stream to be recreated after you delete is if you still have something sending data for it.

You need to stop the ingestion of data before you delete the data stream or it will be recreated.

1 Like

no data is coming in. has zero record

you were right, client was sending data, it was failing because it does not had action = create and this is datastream which requires that step.

that app do not have such setting to add action=create. hence I had to use old way of creating ILM, template and alias and Index.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.