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' .
Answer from @Korakot works for a single file and in case, to delete entire folder or subfolders or files
use
!rm -rf <folder_name>