Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Clear DirectoryNew to Visual Studio Code? Get it now.
Clear Directory

Clear Directory

bargeaaron

|
50 installs
| (0) | Free
Clears a directory of its contents
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Clear Directory

Adds the ability to clear a directory of its files

Features

The context menu after right clicking on a directory in the file explorer includes a new option Clear Directory. Selecting this option shows a warning for how many files will be removed. Clicking continue results in the files being deleted.

This can also be achieved by pressing Delete when the folder is selected in the file explorer.

Release Notes

0.1.0

Added ability to optionally delete subdirectories. Togglable through the cleardirectory.deleteSubdirectories setting, false be default.

0.0.1

Initial release of Clear Directory

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft