Deleting hacked wordpress files gives "Unknown Error" in file manager

Issue: Whenever a wordpress site is hacked and contains malware files, I tend to delete all files and folders in public_html to create a fresh Wordpress installation. But the file manager seems to suck at it, because everytime it gives “Unknown Error”. I have observed this multiple times and then creating the ticket. What’s the purpose of file manager If I have to delete files through terminal.

Secondly, how could a malware hamper the internal core functionality of hestiacp is a mystery alone.

Thanks & Regards
Surya

do anyone yave idea on this issue?

I usualy do not work with the filemanager, probaly it runs in a timeout due to the mass of small files. I honestly tend to use bash, for such a task, its take not more than 30 seconds.

Core functionality doesnt get touched on a hacked wordpress site, expect for a potential high load issue. Easiest way is to suspend the user or webdomain, then restart the nginx/apache2/phpfpm process (or the server).

For wordpress, install wordfence and keep the instance up to date. With that way, i never had issues with hacked instances.

Maybe this will help