Best way to delete certain guild commands.

I have this idea to use "modules" in my bot that you can enable and disable via a command or future dashboard. The way it works is by adding guild commands when enable a module and removing them when you disable it. However since I am working with multiple commands I do not know the best way to remove the commands. If anyone can help I would greatly appreciate it!
Was this page helpful?