1. Home >
  2. Apps >
  3. Groups >

How can I delete more than file in folder using python?

Question asked by Ayman Alshobaki in #ML & AI on Nov 16, 2019
Ayman Alshobaki
Ayman Alshobaki · Nov 16, 2019
Rank E1 - BEGINNER

hello i learn image processing with python and i must delete the image after testing it with tensorflow that is end with jpg

 the most common codes to a single statement i need all file in same folder (without using for loop) 

Posted in: #ML & AI
saandeep sreerambatla
saandeep sreerambatla · Nov 18, 2019
Rank C2 - EXPERT

Better to delete the entire folder if you dont want to loop over.

use shutil package where you can remove entire folder.

Kaustubh Katdare
Kaustubh Katdare · Nov 24, 2019
Rank A1 - PRO

@Ayman Alshobaki - please let us know if the answer helped you. Ask follow up questions, if you have any. Thanks!

You must log-in or sign-up to reply to this post.

Click to Log-In or Sign-Up