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

# Deactivate Agent

> Deactivate an agent. This is a soft delete: the agent can no longer start new runs, but its existing runs and their results remain retrievable.



## OpenAPI

````yaml /api-reference/openapi.json delete /v2/agents/{agent_id}
openapi: 3.1.0
info:
  title: Nimble SDK
  version: 1.0.0
  description: The AI-Native SDK for Real-Time Web Data at scale
servers:
  - url: https://sdk.nimbleway.com
security: []
paths:
  /v2/agents/{agent_id}:
    delete:
      tags:
        - Public API
      summary: Deactivate Agent
      description: >-
        Deactivate an agent. This is a soft delete: the agent can no longer
        start new runs, but its existing runs and their results remain
        retrievable.
      operationId: >-
        deactivate_agent_public_v2_api_v2_public_web_search_agents__agent_id__delete
      parameters:
        - in: path
          name: agent_id
          required: true
          schema:
            format: uuid
            title: Agent Id
            type: string
          description: Web Search Agent ID, format `wsa_<uuid>`.
      responses:
        '204':
          description: Successful Response
        '404':
          description: Agent not found (or not owned by your account).
          content:
            application/json:
              schema:
                type: object
                properties:
                  detail:
                    type: string
                    title: Detail
                title: ErrorDetail
              example:
                detail: >-
                  Web Search Agent wsa_2af5b0e2-58b8-4b60-a1a4-9e57e4d33f00 not
                  found
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
          description: Validation Error
      security:
        - BearerAuth: []
components:
  schemas:
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          title: Detail
          type: array
      title: HTTPValidationError
      type: object
    ValidationError:
      properties:
        ctx:
          title: Context
          type: object
        input:
          title: Input
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          title: Location
          type: array
        msg:
          title: Message
          type: string
        type:
          title: Error Type
          type: string
      required:
        - loc
        - msg
        - type
      title: ValidationError
      type: object
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer

````