

If you want to get the list of all hidden subfolders in a folder, you can run the below command. To get the list of hidden files from the folder c:\windows\system32 and from all its subfolders we need to run the below command.

Now you won’t get that prompt anymore when you empty the trash bin.To get the list of hidden files from all sub directories we need to add /S switch to the command. Then in the preferences window, choose advanced and uncheck the box to show the warning before emptying the trash. If you don’t want to confirm “yes” every single time you delete files from the trash, just go back to the Finder menu and select Preferences. If you’re sure it’s safe to get rid of the files for good, click ok and everything in the trash will be permanently deleted. Maybe your cat walked across the keyboard and hit Command + shift + delete. You’ll get quick confirmation warning to keep you from doing something. If you’re at another application and you try to use command + shift + delete, it won’t work. Now you can only empty the trash when the focus in on the finder. Otherwise, to empty the trash, press the Command + shift + delete at the same time or you can go up to the finder option, in the top navigation and select empty trash. If there’s something in there that you don’t want to delete, you can click on it and drag it back to a safe location. Just double-click on the trash icon at the dock to open the finder window that shows the contents. Now before you empty all the items in the trash permanently, it’s always smart to take a look at the contents of the trash bin and make sure you didn’t accidentally toss in something important. Select the file you’d like to get rid of and to drag it down into the trash. If you change your mind or make a mistake, you can type Command + Z at the same time to undo the last action. You just click to highlight the file and drag it into the handy trash can at the dock at the bottom of the screen.

First, locate any files or folders that you want to delete.
