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?

Recent Posts

  • Java Compact Source File: No Class, No Static Main
  • Java Scoped Values Example
  • Spring Boot RAG Example with Spring AI
  • Java AtomicInteger Example
  • Java Virtual Threads Example
  • Spring Boot Supabase CRUD Example
  • Spring Boot REST Docs Example
  • How to Install Java on Windows (Step-by-Step Guide)

© 2008–2026 mkyong.com

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