Actions34
- Administration Actions
- Components Actions
- Dropdowns Actions
- Management Actions
- Project Actions
- Rule Actions
- Session Actions
- Assistance Actions
- Assets Actions
Rule → Delete
AI-generatedSummary
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