An error occurred (ValidationException) when calling the DeleteRule operation: Rule can’t be deleted since it has targets

Question:

I got this issue when deleting event on aws cloudwatch

An error occurred (ValidationException) when calling the DeleteRule
operation: Rule can’t be deleted since it has targets.

My command line is :

Answer:

I got the solution, we should remove target first:

aws events remove-targets –rule event-schedule
–ids dev-transaction

then delete-rule:

Leave a Reply