How to delete a locally uploaded file on google colab?
问题 I'm trying to delete a file that I uploaded on Google colab using the following code: from google.colab import files uploaded = files.upload() How to delete the file now? e.g If the file's name is 'sample.jpg' . 回答1: Try this !rm sample.jpg Then check that it is gone with !ls -al Update (nov 2018) Now you can click to open left pane, browse the files tab, then right click to select and delete a file. 回答2: Answer from @Korakot works for a single file and in case, to delete entire folder or