Actually delete commands

Forgot to add code to delete commands from the database, not just the
local dictionary.