Skip to main content

Difference between action=delete and the DELETE method

What is the difference between action=delete and the DELETE method?

Written by Petr Pech
  • Both actions are essentially the same at their core. They differ slightly in the behavior that occurs before the action is triggered. For example, action="delete" allows the deletion of documents in periods other than the current one. The DELETE request does not allow this and returns "No permission".

  • action="delete" can be used in almost all cases. It cannot be used on users, standard overview records, and similar entities.

  • action="delete" should be safe to use. Depending on the type of relationships involved, it will either delete linked records, remove the links, or prevent the action from being executed. In rare cases, a database trigger may halt the delete transaction.

Did this answer your question?