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

# Bulk Delete Projects

> Delete up to 100 projects in one call. Not atomic: each id is processed independently and reported in `results` (in request order). Returns `200` when every id was deleted, or `207 Multi-Status` when at least one failed. A `NOT_FOUND` item means the id was not found or is not accessible with this API key.



## OpenAPI

````yaml api/openapi.json POST /v1/projects/bulk-delete
openapi: 3.1.0
info:
  title: Connections Hub API
  version: 1.0.0
  description: >-
    Run HSS Connections Hub calculators programmatically: create projects,
    create and solve sheets from any calculator template, run batches, and
    export reports to PDF.


    All endpoints require API key authentication.
servers:
  - url: https://api.calcs.com
security:
  - bearerAuth: []
tags:
  - name: Projects
    description: >-
      Create and manage calculation projects. Each user can have multiple
      projects to organize their calculations.
  - name: Sheets
    description: >-
      Manage individual calculation sheets — read one back, update its inputs,
      solve or re-solve it, and delete single sheets or clean up many at once.
  - name: Templates
    description: >-
      Run calculations using any enabled template. Supports all calculator types
      without requiring endpoint-specific code.
paths:
  /v1/projects/bulk-delete:
    post:
      tags:
        - Projects
      summary: Bulk Delete Projects
      description: >-
        Delete up to 100 projects in one call. Not atomic: each id is processed
        independently and reported in `results` (in request order). Returns
        `200` when every id was deleted, or `207 Multi-Status` when at least one
        failed. A `NOT_FOUND` item means the id was not found or is not
        accessible with this API key.
      operationId: bulk-delete-projects
      parameters:
        - name: Authorization
          in: header
          required: true
          example: Bearer YOUR_KEY_HERE
          schema:
            type: string
          description: >-
            The `Authorization` header is used to authenticate with the API
            using your API key. Value is of the format `Bearer YOUR_KEY_HERE`.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - projectIds
              properties:
                projectIds:
                  type: array
                  description: Project UUIDs to delete (1–100).
                  items:
                    type: string
                    format: uuid
                  minItems: 1
                  maxItems: 100
            example:
              projectIds:
                - 0ad00c8b-03e9-467c-aa29-27d28f6a056f
                - 662f0b28-3c2e-4dae-a61b-1bdfa367373b
      responses:
        '200':
          description: Every requested project was deleted.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BulkDeleteResult'
              examples:
                all_deleted:
                  summary: Every requested id was deleted
                  value:
                    results:
                      - id: 0ad00c8b-03e9-467c-aa29-27d28f6a056f
                        status: deleted
                      - id: 662f0b28-3c2e-4dae-a61b-1bdfa367373b
                        status: deleted
        '207':
          description: At least one id failed; see each item's `status` and `code`.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BulkDeleteResult'
              examples:
                partial_failure:
                  summary: One id deleted, one not found
                  value:
                    results:
                      - id: 0ad00c8b-03e9-467c-aa29-27d28f6a056f
                        status: deleted
                      - id: 662f0b28-3c2e-4dae-a61b-1bdfa367373b
                        status: error
                        code: NOT_FOUND
        '400':
          description: The request body is not valid JSON.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ValidationError'
              examples:
                invalid_json:
                  summary: Request body is not valid JSON
                  value:
                    error:
                      code: VALIDATION_ERROR
                      message: Invalid JSON in request body.
        '401':
          description: Unauthorized — missing or invalid API key.
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
              examples:
                unauthorized:
                  summary: Missing or invalid API key
                  value:
                    type: https://httpproblems.com/http-status/401
                    title: Unauthorized
                    status: 401
                    detail: No Authorization Header
                    instance: /v1/projects/bulk-delete
                    trace:
                      timestamp: '2026-07-22T07:19:15.486Z'
                      requestId: 40ef42de-db05-439d-8a8e-b0f95e5d1e85
                      buildId: 75f93f77-18bc-4f82-9a77-2e322a1bba58
                      rayId: a1f0ad107de0189f
        '403':
          description: >-
            Deletes are disabled for this API key; the error code is
            `ACCESS_DENIED`.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              examples:
                access_denied:
                  summary: Deletes are disabled for this API key
                  value:
                    error:
                      code: ACCESS_DENIED
                      message: Deletes are disabled for this API key.
        '422':
          description: >-
            The `projectIds` array is missing, empty, contains a non-UUID,
            contains duplicate ids (compared case-insensitively), or exceeds 100
            ids.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ValidationError'
              examples:
                not_an_array:
                  summary: projectIds is missing or not an array
                  value:
                    error:
                      code: VALIDATION_ERROR
                      message: projectIds must be an array of UUID strings.
                      details:
                        - field: projectIds
                          message: projectIds must be an array of UUID strings.
                empty_array:
                  summary: projectIds is empty
                  value:
                    error:
                      code: VALIDATION_ERROR
                      message: projectIds cannot be empty. Provide at least one id.
                      details:
                        - field: projectIds
                          message: projectIds cannot be empty. Provide at least one id.
                non_uuid_id:
                  summary: projectIds contains a value that is not a UUID
                  value:
                    error:
                      code: VALIDATION_ERROR
                      message: projectIds must contain only UUID strings.
                      details:
                        - field: projectIds
                          message: projectIds must contain only UUID strings.
                duplicate_ids:
                  summary: >-
                    projectIds lists the same id more than once (ids are
                    compared case-insensitively)
                  value:
                    error:
                      code: VALIDATION_ERROR
                      message: projectIds cannot contain duplicate ids.
                      details:
                        - field: projectIds
                          message: projectIds cannot contain duplicate ids.
                over_limit:
                  summary: projectIds exceeds 100 ids
                  value:
                    error:
                      code: VALIDATION_ERROR
                      message: projectIds cannot contain more than 100 ids.
                      details:
                        - field: projectIds
                          message: projectIds cannot contain more than 100 ids.
      security:
        - api_key: []
components:
  schemas:
    BulkDeleteResult:
      type: object
      description: >-
        Result of a bulk-delete call. Each requested id gets one entry in
        `results`, in request order. `status` is `deleted` when the resource was
        deleted, or `error` otherwise (with a machine-readable `code`).
      properties:
        results:
          type: array
          items:
            type: object
            properties:
              id:
                type: string
                format: uuid
                description: The requested resource id.
              status:
                type: string
                enum:
                  - deleted
                  - error
                description: Per-item outcome.
              code:
                type: string
                description: >-
                  Machine-readable error code, present only when `status` is
                  `error`. Either `NOT_FOUND` (the id does not exist, or is not
                  accessible with this API key) or `UPSTREAM_ERROR` (the
                  deletion could not be completed; the id may still exist).
                  Treat an unrecognised code as a retryable failure.
            required:
              - id
              - status
      required:
        - results
    ValidationError:
      type: object
      description: Validation error response for invalid API inputs
      properties:
        error:
          type: object
          properties:
            code:
              type: string
              enum:
                - VALIDATION_ERROR
              description: Error code for validation failures
            message:
              type: string
              description: Human-readable error summary
              example: Input validation failed
            details:
              type: array
              description: Array of specific validation errors
              items:
                type: object
                properties:
                  field:
                    type: string
                    description: Path to the invalid field (e.g., 'L_X', 'supports.0.2')
                  message:
                    type: string
                    description: Description of what's wrong with the field
                required:
                  - field
                  - message
          required:
            - code
            - message
      required:
        - error
      example:
        error:
          code: VALIDATION_ERROR
          message: Input validation failed
          details:
            - field: L_X
              message: Expected number, received string
            - field: supports
              message: At least 2 supports are required
    ProblemDetails:
      type: object
      description: >-
        RFC 7807 (`application/problem+json`) error returned by the API gateway
        before a request reaches the handler — currently authentication failures
        (401). Note this differs from the `{ error: { code, message, details }
        }` envelope returned by the handler for validation and not-found errors.
      properties:
        type:
          type: string
          format: uri
          description: URI identifying the problem type.
        title:
          type: string
          description: Short, human-readable summary of the problem type.
        status:
          type: integer
          description: HTTP status code.
        detail:
          type: string
          description: Human-readable explanation specific to this occurrence.
        instance:
          type: string
          description: The request path that produced the error.
        trace:
          type: object
          description: >-
            Gateway trace metadata for support (timestamp, requestId, buildId,
            rayId).
      required:
        - type
        - title
        - status
        - detail
    ErrorResponse:
      type: object
      description: >-
        Standard error envelope for handler errors. `code` is a stable
        machine-readable error code (e.g. NOT_FOUND, UPSTREAM_ERROR); `message`
        is human-readable and may change.
      properties:
        error:
          type: object
          properties:
            code:
              type: string
              description: Machine-readable error code.
            message:
              type: string
              description: Human-readable error message.
          required:
            - code
            - message
      required:
        - error
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        Send your API key as a bearer token: `Authorization: Bearer
        YOUR_API_KEY`. Every endpoint requires one.
    api_key:
      type: http
      scheme: bearer

````

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