Rewrite the remove_item function and add the remove_downloaded_item function