Moved the deletecommand