Delete action

Remove an action and tear down its systemd units.


DELETE/api/scripts/{script}/actions/{action}

Delete an action

Ploi queues an uninstall job for every server that still has the unit installed. The action row is deleted once the final unit is gone.

If an attached server is unreachable when the uninstall runs, Ploi still drops the pivot row — you can clean up the orphan unit file manually if needed, but the action is considered removed from your account.

Request

DELETE
/api/scripts/{script}/actions/{action}
curl -X DELETE "https://ploi.io/api/scripts/{script}/actions/{action}" \
  -H "Authorization: Bearer {token}" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json"

Response

{
  "status": "ok",
  "message": null
}