 
  Data Structure Data Structure
 Networking Networking
 RDBMS RDBMS
 Operating System Operating System
 Java Java
 MS Excel MS Excel
 iOS iOS
 HTML HTML
 CSS CSS
 Android Android
 Python Python
 C Programming C Programming
 C++ C++
 C# C#
 MongoDB MongoDB
 MySQL MySQL
 Javascript Javascript
 PHP PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
How to delete hidden files and folders using PowerShell?
If we want to delete the hidden files and folders from the C:\temp on the local computer, we need to use the command shown in this example.
Example
But first, the below command helps us to retrieve the hidden files and folders from the C:\temp.
Get-ChildItem C:\Temp -Hidden -Recurse
We just need to pipe the Remove-Item command and to remove forcibly use -Force parameter.
Get-ChildItem C:\Temp -Hidden -Recurse | Remove-Item -Force -Verbose
Output

Advertisements
 