Hey there everyone. So I have ran across this problem multiple times. The problem is whenever I install Drupal everything is alright, but when it is time to delete all of my drupal files everything deletes correctly besides the sites folder. Many of you are probably wondering why you cannot delete the sites folder(Drupal)? Well in today’s quick tip I will explain how you can delete the Drupal sites folder and hopefully helps you avoid this problem in the future.
How you can delete the Drupal sites folder
I know there are many solutions to this problem but they require a bit of knowledge about severs and not many people work, or are familiar with server side developments. I have found a pretty simple method for deleting this folder and hope you all understand it. So to delete your sites folder simply navigate to your sites folder>>Right click>> properties>> and you will see the file permission is set to 555. Change file permission to 777 and you should now be able to delete your Drupal sites folder.
The problem
The problem was the Drupal sites folder was set to permissions 555 which is not rewritable. So you could not edit nor delete the folder because it was not writable. So by us changing the folder permission to 777 we were now able to rewrite the folder and change necessary files.
Please let me know if this solution worked for you. It worked for me so I am pretty sure it would work for you.