Dev  deletecommands refactor