What do you want to save?
Add Code snippet
New code examples
-
Shell/Bash 2021-10-30 18:45:11
vscode display all extensions
//How To Delete all Visual Studios Code Extensions that you installed //Open Terminal or Command Prompt, and enter one of this codes below to delete //your extensions // For Mac/Linux rm -rf ~/.vscode/extensions //For Windows rmdir %USERPROFILE%\.vsc... Add solution -
Python 2021-10-29 19:37:15
Deleting a file using python
import os import shutil if os.path.exists("demofile.txt"): os.remove("demofile.txt") # one file at a time os.rmdir("test_directory") # removes empty directory shutil.rmtree("test_directory") # removes not empty ... Add solution -
Javascript 2021-10-16 18:07:05
delete all files in a folder with nodejs
rmDir = function(dirPath, removeSelf) { try { var files = fs.readdirSync(dirPath); } catch(e) { return; } if (files.length > 0) for (var i = 0; i < files.length; i++) { var filePath = dirPath + '/' + files[i]; if (fs.statSync(f... Add solution
Best helpers
User 768576
+10
Viki
+5
Riptiki
+5
Suraj tiwari
+5
Johnno Nolan
+5
Alxna
+5
Bmcl
+5
Nuno
+5
AllenG
+5
Hong
+5
Hugh Zang
+5
Marcel Souza
+5
Rosey28
+5