Hi community,
We have a problem where we cannot delete a Agent Policy because it states that "Agent policy with managed package policies cannot be deleted".
Context:
We copied an existing Agent Policy with 33 integrations to use with our new Kubernetes Dev Cluster that we had setup. We then realized there were some issues that popped up, more specifically around the elastic synthetics integrations and our observability monitors that all went down. When we tried to remove the elastic synthetics integrations from our new Agent Policy we were presented with the message that states "this is an externally managed integration policy" so we could not remove it. We then realized that we would need to remove/delete the elastic synthetics integrations on our existing Agent Policy but that meant deleting each of our observability monitors one by one and then possibly having to rebuild it.
Is there an easier way to remove/delete any managed integration policies in order to delete our new Agent Policy without having to break any of our existing integrations and stuff we built?