fixed delete_cmd