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