---
updatedAt: 2026-06-30T16:05:21.000Z
agentTools:
  projectIndex: https://docs.pelcro.com/llms.txt
---

# Delete bill

Delete a draft bill. Only draft bills can be deleted.

## Overview

Permanently delete a bill. Only bills in Draft status can be deleted — finalized and paid bills return 400.

## Side effects

* All associated line items are deleted
* A `bill.deleted` event is fired

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "core-api",
    "version": "1.88"
  },
  "servers": [
    {
      "url": "https://www.pelcro.com/api/v1/core"
    }
  ],
  "components": {
    "securitySchemes": {
      "sec0": {
        "type": "apiKey",
        "in": "header",
        "name": "Authorization",
        "x-bearer-format": "bearer"
      },
      "sec1": {
        "type": "apiKey",
        "in": "query",
        "name": "site_id"
      }
    }
  },
  "security": [
    {
      "sec0": [],
      "sec1": []
    }
  ],
  "paths": {
    "/bills/{id}": {
      "delete": {
        "description": "Delete a draft bill. Only draft bills can be deleted.",
        "operationId": "delete_bills-id",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            },
            "description": "The bill ID."
          },
          {
            "name": "site_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "integer"
            },
            "description": "The site ID."
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string"
                    }
                  }
                },
                "examples": {
                  "Result": {
                    "value": {
                      "message": "Bill deleted successfully"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request.",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": {
                      "message": "Only draft bills can be deleted"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated.",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": {
                      "error": "Unauthenticated."
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Delete bill"
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true
}
```

# Sibling pages

* [List bills](https://docs.pelcro.com/reference/list-bills.md)
* [Create bill](https://docs.pelcro.com/reference/create-bills.md)
* [Get bill](https://docs.pelcro.com/reference/get-bill.md)
* [Update bill](https://docs.pelcro.com/reference/update-bill.md)
* [Finalize bill](https://docs.pelcro.com/reference/api-core-finalize-bill.md)
* [Mark bill as paid](https://docs.pelcro.com/reference/api-core-mark-bill-as-paid.md)
* [Export bills](https://docs.pelcro.com/reference/api-core-export-bills.md)