Fix delete command execution