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.
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.