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

# Delete a device



## OpenAPI

````yaml developers/api-reference/openapi.json delete /v1/devices/{deviceId}
openapi: 3.0.3
info:
  title: Magne API
  version: 1.0.0
  description: RESTful API for the Magne communication platform.
servers:
  - url: https://api.magne.app
    description: Production
security:
  - BearerAuth: []
tags:
  - name: Auth
    description: Registration, login, password reset, and token management
  - name: Servers
    description: Server CRUD and membership
  - name: Discovery
    description: Discover public servers
  - name: Channels
    description: Channel management within servers
  - name: Messages
    description: Send, list, edit, and delete messages
  - name: Pins
    description: Pin and unpin messages
  - name: Reactions
    description: Message reactions
  - name: Categories
    description: Server category management
  - name: Members
    description: Server member management
  - name: Bans
    description: Ban and unban server members
  - name: Roles
    description: Role CRUD and assignment
  - name: Invites
    description: Server invite management
  - name: Join Requests
    description: Manage server join requests
  - name: Profile
    description: User profiles and search
  - name: Badges
    description: Badge catalog and user badges
  - name: Friends
    description: Friend requests and management
  - name: Direct Messages
    description: DM conversations and messages
  - name: Calls
    description: Voice and video calls
  - name: E2EE Keys
    description: End-to-end encryption key management
  - name: Voice
    description: Voice channel participation and controls
  - name: Notifications
    description: User notification management
  - name: Webhooks
    description: Server webhook management
  - name: Music
    description: Music bot proxy controls
  - name: Game Index
    description: Game executable index contributions
  - name: Search
    description: Server-wide search
  - name: Channel Permissions
    description: Channel permission overrides
  - name: Media
    description: File uploads and link previews
  - name: Templates
    description: Import Discord server templates
paths:
  /v1/devices/{deviceId}:
    delete:
      tags:
        - E2EE Keys
      summary: Delete a device
      operationId: deleteDevice
      parameters:
        - name: deviceId
          in: path
          required: true
          schema:
            type: string
      responses:
        '204':
          description: Success
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
        '500':
          $ref: '#/components/responses/InternalError'
components:
  responses:
    Unauthorized:
      description: Unauthorized
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ApiError'
    NotFound:
      description: Not found
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ApiError'
    InternalError:
      description: Internal server error
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ApiError'
  schemas:
    ApiError:
      type: object
      required:
        - error
      properties:
        error:
          type: string
          description: Human-readable error message
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````