Skip to content

mkyong.com

  • Spring Boot
  • Java Virtual Threads
  • Contact
  1. Home /
  2. os module

Tag: os module

python July 14, 2019 2 min read by Hafeezul Kareem 1 comment

Python – How to delete a file or folder?

In this tutorial, we are going to learn how to delete a file or directory in Python. The process of removing a file or folder in Python is straightforward using the os module. os.remove – Deletes a file. os.rmdir – Deletes a folder. shutil.rmtree – Deletes a directory and all its contents. 1. Deletes a […]

Read more Python – How to delete a file or folder?

Java and Spring tutorials since 2008. Every example is a complete, runnable file, compiled and run on a real machine before it goes out.

About This Site

  • About
  • Editorial Policy
  • Contact
  • Code License
  • Privacy Policy
  • Terms of Use

© 2026 mkyong.com — Powered by WordPress

RSS