---
title: "Deletes a global slash command."
method: POST
path: "/deleteGlobalSlashCommand"
---

# Deletes a global slash command.

`POST /deleteGlobalSlashCommand`

This function removes a previously registered global slash command from Discord. It takes the command ID as a parameter and returns a Promise that resolves when the deletion is complete. This allows for programmatic management of global slash commands in a Discord application.

## Request body

- object
  - `body` object — Body of the deleteGlobalSlashCommand sls call
    - `arguments` unknown[], required
      - unknown
    - `auth` object — Authentication object
      - `strategy` 'apikey' — Authentication strategy
      - `variables` unknown[] — Variables for the authentication strategy
        - unknown
    - `packageName` string — @microfox/discord

## Response `200`

Command successfully deleted

- object
  - `success` boolean — Indicates if the command was successfully deleted

## Other responses

- `400` — Bad request - invalid command ID
- `404` — Command not found
- `500` — Internal server error

---

[API](https://skmtc.net/microfox-ai/apis/microfox-discord-sdk-api.md) · [All operations](https://skmtc.net/microfox-ai/apis/microfox-discord-sdk-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/microfox-ai/microfox-discord-sdk-api/versions/7cb5b64ae924/schema)
