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

# deleteArtifactFolder

> DELETE /api/artifacts/folder?path={path}
Soft-delete every non-deleted artifact whose path equals or descends
from `path` for the current workspace. Returns the number of artifacts
deleted. Refused for any artifact in the subtree that has a published
TenantConnectorTap.



## OpenAPI

````yaml /api-reference/openapi.json delete /api/artifacts/folder
openapi: 3.0.3
info:
  title: Parable API
  description: >-
    The REST API for your Parable workspace: manage connectors and taps, explore
    your data catalog, upload artifacts, and administer users and roles.
  version: v1
servers:
  - url: https://api.askparable.com
    description: Production
security: []
paths:
  /api/artifacts/folder:
    delete:
      tags:
        - artifacts
      summary: deleteArtifactFolder
      description: |-
        DELETE /api/artifacts/folder?path={path}
        Soft-delete every non-deleted artifact whose path equals or descends
        from `path` for the current workspace. Returns the number of artifacts
        deleted. Refused for any artifact in the subtree that has a published
        TenantConnectorTap.
      operationId: ArtifactsDeleteArtifactFolderHandler
      parameters:
        - description: >-
            Workspace slug. Overrides subdomain-based workspace resolution when
            provided.
          in: header
          name: X-Tenant
          required: false
          schema:
            example: acme
            type: string
        - description: Optional request correlation ID echoed back in the response.
          in: header
          name: X-Request-ID
          required: false
          schema:
            example: 550e8400-e29b-41d4-a716-446655440000
            format: uuid
            type: string
        - in: query
          name: path
          required: true
          schema:
            description: >-
              Hierarchical path expressed as a dot-separated ltree (e.g.,
              'reports.q1.draft').
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                properties:
                  data:
                    $ref: '#/components/schemas/DeleteArtifactFolderResult'
                  links:
                    $ref: '#/components/schemas/ResponseLinks'
                  meta:
                    $ref: '#/components/schemas/ResponseMeta'
                required:
                  - data
                  - meta
                type: object
          description: Successful response
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: Bad request
        '500':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: Internal server error
      security:
        - bearerAuth: []
components:
  schemas:
    DeleteArtifactFolderResult:
      description: >-
        Result of soft-deleting a virtual folder. `deletedCount` is the number
        of

        artifacts whose path was at or below the deleted folder.
      properties:
        deletedCount:
          description: >-
            Signed 64-bit integer; range bounded by JavaScript's safe-integer
            ceiling.
          format: int64
          type: integer
      required:
        - deletedCount
      type: object
    ResponseLinks:
      properties:
        first:
          nullable: true
          type: string
        last:
          nullable: true
          type: string
        next:
          nullable: true
          type: string
        prev:
          nullable: true
          type: string
      type: object
    ResponseMeta:
      properties:
        requestId:
          description: Unique identifier for the request
          type: string
        totalCount:
          description: Total count of items for paginated responses
          nullable: true
          type: integer
      required:
        - requestId
      type: object
    Error:
      properties:
        error:
          type: string
      type: object
  securitySchemes:
    bearerAuth:
      bearerFormat: JWT
      scheme: bearer
      type: http

````