Bug fixing: --delete flag was not working since last change