Delete Discord application commands (for some reason there is no easier way to do this?!)
  • TypeScript 100%
Find a file
2026-04-06 15:19:20 +02:00
.env.example Rework to delete all global and guild-specific commands automatically 2026-04-05 19:20:24 +02:00
.gitignore Initial commit 2023-03-06 11:35:21 +00:00
bun.lock Rework to delete all global and guild-specific commands automatically 2026-04-05 19:20:24 +02:00
LICENSE ADD README and LICENSE 2024-03-18 18:38:42 +01:00
main.ts 1-line refactor 2026-04-06 15:19:20 +02:00
package.json Rework to delete all global and guild-specific commands automatically 2026-04-05 19:20:24 +02:00
README.md Rework to delete all global and guild-specific commands automatically 2026-04-05 19:20:24 +02:00

Discord-Command-Deletor

Easily delete old Discord application commands.

Usage

  1. Clone or download the repo
git clone https://github.com/LetUsFlow/Discord-Command-Deletor.git
  1. Install dependencies with Bun
bun install
  1. Configure the application by creating a .env file in the root directory of the project or add these as enviroment variables in your terminal. This file should contain the following environment variables:
  • DISCORD_TOKEN: Your Discord bot token.
  • CLIENT_ID: The client ID of your Discord application.
DISCORD_TOKEN=...
CLIENT_ID=...
  1. Delete the reigstered commands
bun start

All global application commands and all guild-specific commands for every guild the bot is currently joined will be deleted. Note, that deleting the commands may take some time (several seconds or more depending on the number of registered commands).

License

ISC