Error "The machine XYZ cannot be deleted", because it has triggers attached to it (#1613) while deleting machines?
Error: "The machine XYZ cannot be deleted because it has triggers attached to it (#1613)".
Root Cause: It happens usually when the Standard machine is added in a modern folder.
Resolution: The steps to perform before deleting the Standard machine,
- Go to each Modern folder -> Machines -> check if the Standard machine is present in the list
- If present, try to Unassign from folder -> Unassign
- If error message "The machine is assigned to trigger YOUR_TRIGGER_NAME in folder Shared (#1613)" is thrown,
- Go to the respective Modern folder -> Automations -> Triggers
- Remove the YOUR_TRIGGER_NAME
- Check if in the Jobs there is a scheduled job for the Standard machine (XYZ),
- If job is found, find it and stop it.
- Repeat the same steps for each folder.
- In the end go to Tenant -> Machines -> find the Standard machine (XYZ) -> Remove -> Delete .