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

# Delete by id

> Media id → delete an uploaded media asset; group id → leave/close a group. Deleting your own WABA or phone-number id is blocked (403).



## OpenAPI

````yaml openapi.meta.json DELETE /{id}
openapi: 3.1.0
info:
  title: Meta Cloud API Layer
  version: 1.0.0
  description: >-
    Pilot Status API Layer — Meta Cloud API (WhatsApp Cloud API / Graph API
    passthrough). Base URL `https://pilotstatus.com.br/api/layer/meta`. Call
    Graph API nodes exactly as on `graph.facebook.com/<version>/` — Pilot swaps
    your `ps_` key for the number's real Meta system token. The `vNN.N` version
    prefix is optional (defaults to v22.0). Account/business/auth management and
    number (de)registration are blocked.
servers:
  - url: https://pilotstatus.com.br/api/layer/meta
security:
  - apiKey: []
tags:
  - name: Messages
  - name: Media
  - name: By id
  - name: Templates
  - name: Phone numbers
  - name: Business profile
  - name: Groups
  - name: Calls
paths:
  /{id}:
    delete:
      tags:
        - By id
      summary: Delete by id
      description: >-
        Media id → delete an uploaded media asset; group id → leave/close a
        group. Deleting your own WABA or phone-number id is blocked (403).
      operationId: delete__id
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
          description: >-
            A Graph node id — its meaning depends on the operation (see the
            description).
      responses:
        '200':
          description: Meta Graph API response.
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    description: Whether the operation succeeded.
              example:
                success: true
        default:
          description: Meta Graph API error.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: object
                    properties:
                      message:
                        type: string
                        description: Human-readable error.
                      type:
                        type: string
                        description: e.g. `OAuthException`.
                      code:
                        type: integer
                      error_subcode:
                        type: integer
                      error_data:
                        type: object
                      fbtrace_id:
                        type: string
                description: Meta Graph API error envelope.
              example:
                error:
                  message: (#131030) Recipient phone number not in allowed list
                  type: OAuthException
                  code: 131030
                  fbtrace_id: A...
components:
  securitySchemes:
    apiKey:
      type: apiKey
      in: header
      name: x-api-key
      description: >-
        Your Pilot Status API key (ps_...). You may also send `Authorization:
        Bearer ps_...` or `?access_token=ps_...`.

````