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

# Delete project via API key

> Delete project using API key authentication. Requires BUILD_AND_DEPLOY scope.



## OpenAPI

````yaml delete /api/projects/{id}
openapi: 3.0.0
info:
  title: LeanMCP SDK API
  description: >-
    API endpoints for LeanMCP SDK integration. These endpoints use API key
    authentication and are designed for programmatic access from the CLI and
    SDK.
  version: 1.0.0
servers:
  - url: https://api.leanmcp.com
    description: Production
  - url: http://localhost:3001
    description: Local Development
security: []
tags:
  - name: builds-sdk
  - name: chat-messages-api-key
  - name: chats-api-key
  - name: deployments-api-key
  - name: deployments-sdk
  - name: mapping-sdk
  - name: projects-api-key
paths:
  /api/projects/{id}:
    delete:
      tags:
        - projects-api-key
      summary: Delete project via API key
      description: >-
        Delete project using API key authentication. Requires BUILD_AND_DEPLOY
        scope.
      operationId: ProjectsApiKeyController_deleteProject
      parameters:
        - name: id
          required: true
          in: path
          description: Project ID
          schema:
            example: proj_123456789
            type: string
      responses:
        '200':
          description: Project deleted successfully
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                  message:
                    type: string
                  deletedAt:
                    type: string
        '404':
          description: Project not found or access denied
      security:
        - ApiKeyAuth: []
components:
  securitySchemes:
    ApiKeyAuth:
      type: http
      scheme: bearer
      bearerFormat: API Key
      description: Enter your LeanMCP API key

````