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

# Delete Pillars

> Permanently deletes 1-20 Knowledge Base pillars and every fact filed under them. Facts are deleted, not unfiled; there is no undo. Ids with no pillar on the website are reported in not_found_ids instead of failing the call, so retries are idempotent; ids in failed_ids are untouched and safe to retry. Requires a website-admin API key; on OAuth MCP connections the signed-in user must hold the admin role. Also available as the MCP tool `delete_pillars`.



## OpenAPI

````yaml /api-reference/openapi.json post /api/v1/knowledge-base/pillars/delete
openapi: 3.1.0
info:
  title: AthenaHQ API
  description: >-
    AthenaHQ API provides programmatic access to manage your websites and
    prompts for AI-powered content optimization.
  version: 1.0.0
  contact:
    email: support@athenahq.ai
servers:
  - url: https://api.athenahq.ai
    description: Production server
security:
  - apiKey: []
tags:
  - name: Basics
    description: Core API operations for managing websites and prompts
  - name: Metrics
    description: Metrics and analytics endpoints for tracking AI visibility
  - name: Billing
    description: Billing and credits endpoints for managing usage
  - name: Team Management
    description: Endpoints for managing team members and invitations
  - name: Groups
    description: Endpoints for managing groups of websites
  - name: Content
    description: >-
      Endpoints for accessing Content Hub data — tabs, tracked URLs, and per-URL
      prompt breakdowns.
  - name: Pitch Workspace
    description: >-
      Endpoints for accessing pitch workspace reports — org-scoped pitch runs
      with competitors, prompts, attributes, and aggregate metrics.
  - name: Knowledge Base
    description: >-
      Endpoints for reading the brand Knowledge Base — approved brand facts and
      the pillars that organize them.
paths:
  /api/v1/knowledge-base/pillars/delete:
    post:
      tags:
        - Knowledge Base
      summary: Delete Pillars
      description: >-
        Permanently deletes 1-20 Knowledge Base pillars and every fact filed
        under them. Facts are deleted, not unfiled; there is no undo. Ids with
        no pillar on the website are reported in not_found_ids instead of
        failing the call, so retries are idempotent; ids in failed_ids are
        untouched and safe to retry. Requires a website-admin API key; on OAuth
        MCP connections the signed-in user must hold the admin role. Also
        available as the MCP tool `delete_pillars`.
      operationId: deletePillars
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                website_id:
                  type: string
                  format: uuid
                  description: The website whose pillars to delete.
                pillar_ids:
                  type: array
                  minItems: 1
                  maxItems: 20
                  items:
                    type: string
                    format: uuid
                  description: Pillars to delete. A single delete is a one-element array.
              required:
                - website_id
                - pillar_ids
      responses:
        '200':
          description: Deletion report
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    enum:
                      - true
                  deleted_pillars:
                    type: array
                    items:
                      type: object
                      properties:
                        id:
                          type: string
                        name:
                          type: string
                        fact_count:
                          type: integer
                          description: Facts hard-deleted with this pillar.
                      required:
                        - id
                        - name
                        - fact_count
                    description: >-
                      Pillars actually deleted. A deleted pillar cannot be
                      re-fetched, so this is the caller's record of what was
                      destroyed.
                  not_found_ids:
                    type: array
                    items:
                      type: string
                    description: >-
                      Requested ids with no pillar on this website: already
                      deleted or never existed.
                  failed_ids:
                    type: array
                    items:
                      type: string
                    description: >-
                      Pillars whose delete errored. Each pillar deletes in its
                      own transaction, so these are untouched and safe to retry.
                required:
                  - success
                  - deleted_pillars
                  - not_found_ids
                  - failed_ids
        '400':
          description: Bad request - Invalid parameters
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                empty_pillar_ids:
                  value:
                    error: 'pillarIds: pillar_ids must contain at least one id'
                too_many_pillar_ids:
                  value:
                    error: 'pillarIds: pillar_ids must contain at most 20 ids'
        '401':
          description: Unauthorized - Invalid or missing API key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: >-
            Forbidden - No admin access to this website, or the Knowledge Base
            is not enabled for the organization
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                unauthorized_website:
                  value:
                    error: Unauthorized access to this website
                kb_not_enabled:
                  value:
                    error: Knowledge Base is not enabled for this organization
      security:
        - apiKey: []
components:
  schemas:
    Error:
      type: object
      description: Error response object
      required:
        - error
      properties:
        error:
          type: string
          description: Error message describing what went wrong
          example: Unauthorized
  securitySchemes:
    apiKey:
      type: apiKey
      in: header
      name: x-api-key
      description: >-
        API key for authentication. You can create one
        [here](https://app.athenahq.ai/organization?tab=api).

````