1. Open the command prompt in your system (Press Win key+R, type ‘cmd’ and hit ‘Enter’).
2. Type the following syntax into the command prompt.
cacls <folder_name> /e /c /d %username% 3.If you will try to open and delete the folder.The following messages will be shown.
4. When you want to access and delete the folder then follow this command. cacls <folder_name> /e /c /g %username%:f
NOTE: The file system should be NTFS. Otherwise, this technique will not work.
What is NTFS?
NTFS (NT file system; sometimes New Technology File System) is the file system that the windows NT operating system uses for storing and retrieving files on a hard disk. NTFS is the Windows NT equivalent of the Windows 95 file allocation table (FAT) and the OS/2 High Performance File System (HPFS). However, NTFS offers a number of improvements over FAT and HPFS in terms of performance, extendibility, and security. NTFS allows you to gain the maximum benefits for the needs of today’s enterprise business environments from Windows Server 2003, such as increased security, more robust and reliable performance, as well as a design for greater storage growth, features not found in FAT.