Removing it manually from the table when there is a nice function that will invalidate the cache for you is a bad idea. You don't know how the internal implementation will change in the future, so it might just break your addon when you do it like that. And as Shadowfen said, it will just force the slash command table from getting scanned again which is exactly what you want when you remove a command.
|