I am cleaning up my remote directory, but there are 2 particular folder(shown in screenshot) I am unable to do anything. Both folders have 0777 permission. I believe these folders the remains of last time when my laravel /bootstrap/cache was configured to my local machine rather than remote directory.(just a guess, not certain)
My concern is, those ghost folders, do they consume my inode usage? As I have no use for them, I would like to remove them if possible: (full path below for convenience)
@LunarDerrick I hid the previous screenshots and replaced them
Never take a screenshot from the Monsta file manager so the address is visible
because anyone who sees/writes it can access your FTP
The problem is that the file path has a backslash in it, which is an invalid path character and then Monsta goes crazy.
If it really irritates you
make a backup of everything you need as well as the DB
then
You can install Laravel through Softaculous and then uninstall it again via Softaculous and it might go away
OR
You can remove your domain from the current hosting account, backup the files that you do want, then, you can create a new hosting account and add the domain back.
Instead of rebuilding the website on a new account, you can also delete the file through PHP code. After all, if PHP code can create it, then PHP code can delete it.
I wrote about that in another topic a few months ago here:
This solution works for me. By directly using PHP code, I can properly access the target files, which I found out they are folders/directories, with remaining files within them. So, after running recursive function of unlink() followed by rmdir(), I have successfully removed the folders.
This pair of issue & solution deserves more attention.