When you try to delete some folders from C: drive of your system, then it might not allow you to delete it with the following error:
Even you are admin of your system or even you manage to took the ownership of folder in your name, then also you might not able to delete the folder.
So, I would like to provide you the quick solution. Very easy !!!!
1. Make a folder and create a .txt file inside it and named it . (Note: You can create a folder any where on your system)
2. Inside that text file, type the following line:
SET DIRECTORY_NAME="C:\Your Directory which you want to delete" TAKEOWN /f %DIRECTORY_NAME% /r /d y ICACLS %DIRECTORY_NAME% /grant administrators:F /t PAUSE
3. Save it as batch file as New_Textfile.bat
4. Then, run the batch file as administrator.
After the command works fine, you can delete the folder by just pressing DELETE button. Now it will work like a charm 🙂
Feel free to contact me if you need any help.