Skip to main content

delete

Function delete 

Source
pub async fn delete(
    pool: &PgPool,
    actor: &Actor,
    id: Uuid,
) -> AppResult<ResultTemplate>
Expand description

Removes a template; values it extracted before stay.

ยงInvariants

  • Permission: manager of the project group or administrator (403); a hidden template is a 404.
  • Locks: none beyond the row lock of the DELETE.
  • Audit: result_template.delete.
  • Notifications / webhooks: none.
  • Atomic: one transaction.