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

# Delete Instruction

> Deletes an instruction by its ID. This removes the rule from the system and it will no longer be evaluated against incoming transactions.



## OpenAPI

````yaml DELETE /instructions/{id}
openapi: 3.1.0
info:
  title: FinWatch API
  description: >-
    FinWatch REST API for real-time transaction monitoring, rule evaluation, and
    instruction management.
  version: 1.0.0
  contact:
    name: FinWatch Support
    url: https://docs.finwatch.finance
servers:
  - url: http://localhost:8081
    description: Local development server
security: []
tags:
  - name: Transactions
    description: >-
      Inject transactions for evaluation, retrieve transaction details, and
      handle webhook events.
  - name: Instructions
    description: >-
      Create, list, retrieve, and delete monitoring rules written in
      Watchscript.
  - name: Git
    description: Manage rules with Git for version control — status, pull, push, and clone.
paths:
  /instructions/{id}:
    delete:
      tags:
        - Instructions
      summary: Delete Instruction
      description: >-
        Deletes an instruction by its ID. This removes the rule from the system
        and it will no longer be evaluated against incoming transactions.
      operationId: deleteInstruction
      parameters:
        - name: id
          in: path
          required: true
          description: The instruction ID to delete (integer)
          schema:
            type: integer
          example: 1
      responses:
        '204':
          description: Instruction deleted successfully
        '400':
          description: Invalid instruction ID format
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: Instruction not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '500':
          description: Failed to delete instruction
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    Error:
      type: object
      properties:
        error:
          type: string
          description: Error message
        code:
          type: string
          description: Error code

````