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

# Revoke Self

> Revoke this device's own credential — the server half of Disconnect.

The path says `self` rather than taking a `device_id`, because a route that
accepts an id is one authorization bug away from revoking anything. There is
no id to get wrong.



## OpenAPI

````yaml /api-reference/openapi-developer.json delete /api/v1/fleet/devices/self
openapi: 3.1.0
info:
  title: PromptGuard Developer API
  description: >-
    Public API for developers to integrate PromptGuard security into their
    applications
  version: 1.0.0
servers:
  - url: https://api.promptguard.co
    description: Production
security:
  - ApiKeyAuth: []
paths:
  /api/v1/fleet/devices/self:
    delete:
      tags:
        - fleet-device
      summary: Revoke Self
      description: >-
        Revoke this device's own credential — the server half of Disconnect.


        The path says `self` rather than taking a `device_id`, because a route
        that

        accepts an id is one authorization bug away from revoking anything.
        There is

        no id to get wrong.
      operationId: revoke_self_api_v1_fleet_devices_self_delete
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
components:
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key
      description: >-
        PromptGuard API key for developer endpoints. Keys start with pg_live_
        and are created in the dashboard.

````