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

# Unregister a device token

> Removes an FCM registration token for the authenticated user, e.g. on logout. Always returns 200, even if the token was already gone.

Body (OpenAPI tooling omits request bodies on DELETE, but the server reads one):

```json
{ "token": "<fcm-registration-token>" }
```



## OpenAPI

````yaml /openapi/shared.yaml delete /api/v1/notifications/devices
openapi: 3.0.3
info:
  title: Shared Service API
  version: 1.0.0
  description: |2-

        **Shared Service API** - Comprehensive shared service and management system.

        ## Versionings
        The API uses URL path versioning (e.g., `/api/v1/`, `/api/v2/`).
        Current version: **v1**
        
  contact:
    name: API Support
    email: thakacreations@gmail.com
  license:
    name: thakacreations
servers: []
security: []
paths:
  /api/v1/notifications/devices:
    delete:
      tags:
        - notifications
      summary: Unregister a device token
      description: >-
        Removes an FCM registration token for the authenticated user, e.g. on
        logout. Always returns 200, even if the token was already gone.


        Body (OpenAPI tooling omits request bodies on DELETE, but the server
        reads one):


        ```json

        { "token": "<fcm-registration-token>" }

        ```
      operationId: notifications_devices_unregister
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DeviceTokenUnregisterResponse'
              examples:
                Unregistered:
                  value:
                    success: true
                    message: Device token unregistered
                    data: {}
          description: ''
      security:
        - bearerAuth: []
components:
  schemas:
    DeviceTokenUnregisterResponse:
      type: object
      properties:
        success:
          type: boolean
        message:
          type: string
        data:
          type: object
          additionalProperties: {}
      required:
        - data
        - message
        - success
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: 'Enter your JWT token in the format: Bearer <token>'

````