GLPI Rest API V2 (Fork) icon

GLPI Rest API V2 (Fork)

GLPI Rest API Node compatible with GLPI 9.x and above.

Actions34

Rule → Delete

AI-generated

Summary

Deletes a rule from GLPI based on the specified rule ID.

Inputs

  • ruleId (required) — ID of the rule to delete.
  • confirmDelete — Must be true to allow deletion.
  • collection — Collection of rules (e.g., "global", "user", or specific scope).

Output shape

a single record or an array of records depending on input, including the deleted rule's data and status.

If the rule is successfully deleted, the API typically returns the updated rule object. Errors are returned in the JSON body.

Examples

Example 1: Delete a specific rule by ID.

Rule ID: 123, Confirm Delete: true

Example 2: Delete a rule from a specific collection (e.g., 'global').

Rule ID: 456, Collection: global, Confirm Delete: true

Links

Discussion