> ## Documentation Index
> Fetch the complete documentation index at: https://documentation.idenfy.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Delete a rule

> Deletes a rule. Only a draft can be deleted; a rule that has ever been active answers `409` instead, because the alerts it raised reference it. Deactivate it to stop it evaluating, then archive it to put it away.



## OpenAPI

````yaml /openapi/transaction-monitoring.json delete /api/v1/rules/{rule_id}/
openapi: 3.0.3
info:
  title: iDenfy Transaction Monitoring API
  version: v1
  description: >-
    Submit transactions and events for AML monitoring, and read back the alerts,
    cases and reports they produce.
servers:
  - url: https://ivs-tx-monitoring.idenfy.com
    description: Production
security:
  - ApiKeyAuth: []
tags:
  - name: Ingest
    description: Submit transactions and events for monitoring.
  - name: Transactions
    description: Read back submitted transactions and their rule hits.
  - name: Rules
    description: Detection rules evaluated against every submission.
  - name: Alerts
    description: Alerts opened when a rule matches.
  - name: Investigations
    description: Cases opened from one or more alerts.
  - name: SARs
    description: Suspicious activity reports and their attachments.
  - name: Sanctions screening
    description: Sanctions and PEP screening of transaction parties.
  - name: AML monitoring
    description: Ongoing AML monitoring of screened parties.
  - name: Party suspensions
    description: ''
  - name: Webhooks
    description: Outbound event delivery to your endpoints.
  - name: Custom fields
    description: Your own transaction attributes, declared so rules can match them.
  - name: Reference lists
    description: Named value lists rules can reference.
  - name: Notification rules
    description: Slack and email notifications for alerts.
  - name: Reports
    description: Generated compliance reports.
paths:
  /api/v1/rules/{rule_id}/:
    delete:
      tags:
        - Rules
      summary: Delete a rule
      description: >-
        Deletes a rule. Only a draft can be deleted; a rule that has ever been
        active answers `409` instead, because the alerts it raised reference it.
        Deactivate it to stop it evaluating, then archive it to put it away.
      operationId: rules_destroy
      parameters:
        - in: path
          name: rule_id
          schema:
            type: string
            format: uuid
            description: Primary key
          required: true
          description: Identifies the rule.
      responses:
        '204':
          description: No response body
      security:
        - ApiKeyAuth: []
components:
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key

````

## Related topics

- [Transaction Monitoring API Authentication](https://documentation.idenfy.com/transaction-monitoring/authentication.md)
- [Delete a notification rule](https://documentation.idenfy.com/api-reference/transaction-monitoring/notification-rules/delete-a-notification-rule.md)
- [Delete a reference list](https://documentation.idenfy.com/api-reference/transaction-monitoring/reference-lists/delete-a-reference-list.md)
- [Delete a custom field](https://documentation.idenfy.com/api-reference/transaction-monitoring/custom-fields/delete-a-custom-field.md)
- [Delete a reference list by name](https://documentation.idenfy.com/api-reference/transaction-monitoring/reference-lists/delete-a-reference-list-by-name.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.