Fix delete command.

Fix an issue with the wrong parameter being passed to the exists? method.