Implement the do_remove_from_playlist function