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

# Review the exact project tree and resources a cascading delete would remove.



## OpenAPI

````yaml /api-reference/openapi.json get /api/v2/projects/{project_id}/cascade-delete
openapi: 3.1.0
info:
  title: Vers API
  description: >-
    REST API for creating, checkpointing, branching, and managing Vers computers
    and projects.
  version: 2.0.0
servers:
  - url: https://api.vers.sh
    description: Vers API
security:
  - bearerAuth: []
tags:
  - name: Computers
    description: Create, inspect, execute commands in, sleep, wake, and delete computers.
  - name: Branches
    description: Branch one or more computers from a live computer, checkpoint, or tag.
  - name: Checkpoints
    description: Capture, inspect, tag, and delete whole-computer checkpoints.
  - name: Projects
    description: >-
      Organize computers into projects with private service networks and grouped
      restores.
  - name: Operations
    description: Inspect and stream status events for asynchronous durable operations.
  - name: Images
    description: >-
      Import and manage custom OCI images, system images, and registry
      artifacts.
  - name: Repositories
    description: Manage checkpoint repositories, tags, and public catalog entries.
  - name: Domains
    description: Register and manage custom domains.
  - name: Environment Variables
    description: Manage account-level environment variables applied to new computers.
  - name: Account & System
    description: Inspect API key identity, usage, and control-plane health.
paths:
  /api/v2/projects/{project_id}/cascade-delete:
    get:
      tags:
        - Projects
      summary: >-
        Review the exact project tree and resources a cascading delete would
        remove.
      operationId: plan_project_deletion
      parameters:
        - name: project_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
      responses:
        '200':
          description: Deletion plan
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProjectDeletionPlan'
        '403':
          description: Organization-wide key required
        '404':
          description: Project not found
components:
  schemas:
    ProjectDeletionPlan:
      type: object
      description: |-
        Everything a cascading project delete removes. Review it, then pass
        `plan_token` to confirm; the delete is refused if the contents changed.
      required:
        - project_id
        - projects
        - vm_ids
        - running_vm_count
        - commit_ids_to_delete
        - kept_commits
        - blockers
        - plan_token
      properties:
        blockers:
          type: array
          items:
            type: string
          description: Reasons the delete cannot run yet. Empty when it can.
        commit_ids_to_delete:
          type: array
          items:
            type: string
            format: uuid
        kept_commits:
          type: array
          items:
            $ref: '#/components/schemas/ProjectDeletionKeptCommit'
          description: >-
            Commits still needed elsewhere; they are only removed from these
            projects.
        plan_token:
          type: string
          description: Identifies exactly what this plan deletes.
        project_id:
          type: string
          format: uuid
        projects:
          type: array
          items:
            $ref: '#/components/schemas/ProjectDeletionProject'
          description: The project first, then every nested project, shallowest first.
        running_vm_count:
          type: integer
          format: int32
          description: How many of those VMs are running now.
          minimum: 0
        vm_ids:
          type: array
          items:
            type: string
            format: uuid
          description: VMs deleted, running or sleeping.
    ProjectDeletionKeptCommit:
      type: object
      required:
        - commit_id
        - reason
        - keep_in_project_ids
        - other_project_names
        - outside_dependent_vms
      properties:
        commit_id:
          type: string
          format: uuid
        keep_in_project_ids:
          type: array
          items:
            type: string
            format: uuid
          description: Memberships the commit keeps; empty leaves it without a project.
        other_project_names:
          type: array
          items:
            type: string
        outside_dependent_vms:
          type: integer
          format: int32
          minimum: 0
        reason:
          $ref: '#/components/schemas/ProjectDeletionKeptReason'
    ProjectDeletionProject:
      type: object
      required:
        - project_id
        - name
        - depth
        - path
      properties:
        depth:
          type: integer
          format: int32
          description: Zero for the project being deleted.
          minimum: 0
        name:
          type: string
        parent_project_id:
          type:
            - string
            - 'null'
          format: uuid
        path:
          type: array
          items:
            type: string
          description: Names from the project being deleted down to this project.
        project_id:
          type: string
          format: uuid
    ProjectDeletionKeptReason:
      type: string
      enum:
        - shared
        - in_use
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: API key
      description: 'Vers API key (`VERS_API_KEY`) sent as `Authorization: Bearer <key>`.'

````

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