Add possibility of removing a command

It would be great if a plugin could also remove a command after adding it.

One example is have different toggle settings that cause different commands to be available or not.

Yeah you can actually retrieve the registered/existing commands and do something using the current API

But for the case you mentioned, you may also want to have a look at the check callback

1 Like

Oh, I missed the

Returning false or undefined causes the command to be hidden from the command palette.

part :exploding_head: