discord js remove slash commands code example
Example: delete discord.js slash command
//Delete command globally:
client.api.applications(client.user.id).commands("command-id").delete();
//Delete for specific guild(s):
client.api.applications(client.user.id).guilds("guild-id(s)").commands("command-id").delete();