github.com/phrase/openapi@v0.0.0-20240514140800-49e8a106740e/paths/variables/destroy.yaml (about)

     1  ---
     2  summary: Delete a variable
     3  description: Delete an existing variable.
     4  operationId: variable/delete
     5  tags:
     6  - Variables
     7  parameters:
     8  - "$ref": "../../parameters.yaml#/X-PhraseApp-OTP"
     9  - "$ref": "../../parameters.yaml#/project_id"
    10  - "$ref": "../../parameters.yaml#/name"
    11  responses:
    12    '204':
    13      "$ref": "../../responses.yaml#/204"
    14    '400':
    15      "$ref": "../../responses.yaml#/400"
    16    '404':
    17      "$ref": "../../responses.yaml#/404"
    18    '429':
    19      "$ref": "../../responses.yaml#/429"
    20  x-code-samples:
    21  - lang: Curl
    22    source: |-
    23      curl "https://api.phrase.com/v2/projects/:project_id/variables/:name" \
    24        -u USERNAME_OR_ACCESS_TOKEN \
    25        -X DELETE
    26  - lang: CLI v2
    27    source: |-
    28      phrase variables delete \
    29      --project_id <project_id> \
    30      --name <name> \
    31      --access_token <token>
    32  x-cli-version: '2.5'