Answers for "remove a directory that is not empty"

1

python remove directory not empty

import shutil

shutil.rmtree('/folder_name')
shutil.rmtree('/folder_name', ignore_errors=True)  # for read only files
Posted by: Guest on November-17-2020
6

terminal delete directory not empty

rm -rf myDirectory
Posted by: Guest on January-16-2020
13

how to delete a non empty directory in linux

1. To recursively delete use

$ rm -r dirname

2.To forcefully delete use

$ rm -rf dirname
Posted by: Guest on June-10-2020
1

remove a non empty directory

sudo rm -R [Directory name]
Posted by: Guest on January-23-2021
0

remove directory not empty windows

rd /s /q "path"
Posted by: Guest on February-02-2021

Code answers related to "remove a directory that is not empty"

Python Answers by Framework

Browse Popular Code Answers by Language