remove directory – POFTUT

Tagged: remove directory


What Does “rm -rf” Command Do In Linux?

rm is very useful command. We can use rm command with different options. The -rf  options are one of the most used options to remove files and folders. In this tutorial we will examine the -rf options and related issues. Recursive with -r -r is used for recursive. The default behavior of rm  command is just removing given path contents. If we have multilevel directory hierarchy and we want to remove all of them...


How To Delete and Remove File and Directory with Python?

Python provides different methods and functions in order to remove files and directories. As python provides a  lot of functionalities we can remove files and directories according our needs. For example we can remove files those sizes are bigger than 1 MB. Remove File with remove We can use os.remove() function in order to remove file. We should import the os module in order to use remove function. In this...

Enjoy this blog? Please spread the word :)