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

# Delete Project

> Soft-delete a project (sets is_active = False).

Sessions previously assigned to the project keep their ``project_id``
so that re-creating a project with the same id (manual or future
feature) would re-link them; the chat UI ignores stale assignments
by hiding inactive projects from the selector.

Returns 404 when the project is not owned by the authenticated user
so cross-tenant existence is not leaked.

# IDOR AUDIT PASS — Project.user_id == authenticated user_id is enforced
# in the WHERE clause.



## OpenAPI

````yaml delete /api/v1/projects/{project_id}
openapi: 3.1.0
info:
  title: EDN Memory Engine
  version: 0.1.0
servers:
  - description: EDN evaluation endpoint
    url: https://api.tensorpro.ai
security:
  - EDNApiKey: []
paths:
  /api/v1/projects/{project_id}:
    delete:
      summary: Delete Project
      description: |-
        Soft-delete a project (sets is_active = False).

        Sessions previously assigned to the project keep their ``project_id``
        so that re-creating a project with the same id (manual or future
        feature) would re-link them; the chat UI ignores stale assignments
        by hiding inactive projects from the selector.

        Returns 404 when the project is not owned by the authenticated user
        so cross-tenant existence is not leaked.

        # IDOR AUDIT PASS — Project.user_id == authenticated user_id is enforced
        # in the WHERE clause.
      operationId: delete_project_api_v1_projects__project_id__delete
      parameters:
        - in: path
          name: project_id
          required: true
          schema:
            title: Project Id
            type: string
      responses:
        '204':
          description: Successful Response
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
          description: Validation Error
components:
  schemas:
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          title: Detail
          type: array
      title: HTTPValidationError
      type: object
    ValidationError:
      properties:
        ctx:
          title: Context
          type: object
        input:
          title: Input
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          title: Location
          type: array
        msg:
          title: Message
          type: string
        type:
          title: Error Type
          type: string
      required:
        - loc
        - msg
        - type
      title: ValidationError
      type: object
  securitySchemes:
    EDNApiKey:
      description: >-
        EDN API key presented as 'Bearer <key>' in the Authorization header.
        Create and manage keys from the Console.
      in: header
      name: Authorization
      type: apiKey

````