Unable to delete the directory

Website URL

(please specify the URL of the site on which you are experiencing the problem)

Error Message

(please share the FULL error message you see, if applicable)

Other Information

There are two directories inside the
htdocs folder that I don’t know how they were created.
The directories are:

  • C:\xampp\htdocs\mobileprice\storage\framework\views
  • C:\xampp\htdocs\mobileprice\storage\logs

Now I’m unable to delete these two directories. When I try to delete them, an error is shown.
How can I delete them?
Also, another issue is that after uploading a ZIP file to the server, it doesn’t get extracted.

99% sure this is caused by an invalid file path. You can’t transfer windows paths to a Linux system. Best way to resolve this is delete the hosting account and start over, make sure to upload over desktop FTP software like FileZilla to prevent this from happening again.

Also, don’t create an htdocs folder within an htdocs folder, that just creates weird paths, upload the files you want in your website directly into the provided htdocs folder, don’t create a new one.

As for the ZIP file, that’s probably just the file manager being buggy, extract it locally then upload the files with FileZilla.

3 Likes

The file manager and FTP server do not support creating or deleting files and directories with invalid characters. Only PHP code can do that.

You can find a few topics with examples of scripts you can use, like this one: Cannot delete folder

Also, make sure to removed the bootstrap/cache folder from your website. Caching the configuration on your own computer and uploading that here causes this issue.

6 Likes

Is there absolutely no other way to delete these two folders?
Isn’t there any method to delete them somehow?

There is, did you read all the replies?

I still recommend resetting your account just to make sure everything is correct from the beginning, but you can also take the approach Admin shared.

5 Likes

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.