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

# Delete a deal

> Delete an deal by its unique identifier for the authenticated team. Only deals with status 'draft' or 'canceled' can be deleted directly. If the deal is not in one of these statuses, update its status to 'canceled' before attempting deletion.



## OpenAPI

````yaml delete /deals/{id}
openapi: 3.1.0
info:
  version: 0.0.1
  title: Abacus API
  description: Abacus is the operating system for Merchant Cash Advance businesses.
  contact:
    name: Abacus Support
    email: support@abacuslabs.co
    url: https://abacuslabs.co
  license:
    name: AGPL-3.0 license
    url: https://github.com/Suphian/abacus/blob/main/LICENSE
servers:
  - url: https://api.abacuslabs.co
    description: Production API
security:
  - oauth2: []
  - token: []
paths:
  /deals/{id}:
    delete:
      tags:
        - Deals
      summary: Delete a deal
      description: >-
        Delete an deal by its unique identifier for the authenticated team. Only
        deals with status 'draft' or 'canceled' can be deleted directly. If the
        deal is not in one of these statuses, update its status to 'canceled'
        before attempting deletion.
      operationId: deleteDeal
      parameters:
        - schema:
            type: string
          required: true
          in: path
          name: id
      responses:
        '200':
          description: Delete a deal by its unique identifier for the authenticated team.
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: string
                    format: uuid
                    description: Unique identifier for the deleted deal
                    example: b3b7e6e2-8c2a-4e2a-9b1a-2e4b5c6d7f8a
                required:
                  - id
components:
  securitySchemes:
    token:
      type: http
      scheme: bearer
      description: Default authentication mechanism
      x-speakeasy-example: ABACUS_API_KEY

````

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