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

# Archive Agent

> Sets archivedAt on the agent and revokes the associated API key. Archived agents are excluded from list queries and cannot be updated.



## OpenAPI

````yaml DELETE /api/v1/agents/{agentId}
openapi: 3.0.0
info:
  title: AgentChain & PRIOR API
  description: The centralized gateway for the decentralized compute network.
  version: '1.0'
  contact: {}
servers:
  - url: https://api.agentchain.xyz
    description: Production
security: []
tags: []
paths:
  /api/v1/agents/{agentId}:
    delete:
      tags:
        - Agents
      summary: Archive an agent (soft-delete)
      description: >-
        Sets archivedAt on the agent and revokes the associated API key.
        Archived agents are excluded from list queries and cannot be updated.
      operationId: AgentsController_archiveAgent
      parameters:
        - name: agentId
          required: true
          in: path
          description: Agent ID
          schema:
            type: string
      responses:
        '204':
          description: Agent archived successfully.
      security:
        - bearer: []
components:
  securitySchemes:
    bearer:
      scheme: bearer
      bearerFormat: JWT
      type: http

````