# Delete Project

DELETE /api/v2/projects/{projectId}

Permanently deletes a project and everything cascading from it. Any queued usage is settled against the balance first, and the delete is refused with 403 if that leaves the project owing money. Top up before retrying. Returns the deleted project as it was at the point of deletion. This cannot be undone.

## Request

- projectId: string, path, required — ID of the project to delete.

## Response

- 200: Successful response
  - autoTopUpEnabled: boolean, required
  - balance: number, required
  - balanceVersion: integer, required
  - createdAt: string, required
  - id: string, required
  - name: string, required
  - slug: string, required
  - updatedAt: string, required
  - autoTopUpAmount: number
  - autoTopUpThreshold: number
  - liveProjectId: string
  - meta: object
    - agentSetupStartedAt: string
    - companyAddressLine1: string
    - companyAddressLine2: string
    - companyCity: string
    - companyCountry: string
    - companyPostalCode: string
    - companyRegion: string
    - contactListVisibleColumns: object[]
    - defaultEmailCampaignSendOrder: object
    - defaultEmailFromDomain: string
    - defaultEmailFromName: string
    - defaultEmailFromUsername: string
    - knowledgeArticlesVisibleColumns: object[]
    - onboardingCompletedAt: string
    - onboardingManual: boolean
    - onboardingStep: name | apps | prompt | progress
    - sdkInstalledAt: string
    - setupGuideGoLiveConfirmed: boolean
    - setupGuideSkips: string[]
    - setupGuideTestEmailSent: boolean
    - setupGuideVisits: string[]
    - timezone: string
  - stripeCustomerId: string
  - tagline: string
  - testStripeCustomerId: string
  - thumbnail: string
- 400: Invalid input data
- 401: Authorization not provided
- 403: Insufficient access
- 404: Not found
- 500: Internal server error
