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

**URL:** <https://forum.hestiacp.com/t/deleting-hacked-wordpress-files-gives-unknown-error-in-file-manager/16999>\
**Category:** Uncategorized\
**Created:** [December 13, 2024, 7:06am UTC](https://forum.hestiacp.com/t/deleting-hacked-wordpress-files-gives-unknown-error-in-file-manager/16999 "2024-12-13T07:06:52Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![surya](https://forum.hestiacp.com/user_avatar/forum.hestiacp.com/surya/32/7795_2.png) [@surya](https://forum.hestiacp.com/u/surya)\
**Post date:** [December 13, 2024, 7:06am UTC](https://forum.hestiacp.com/t/deleting-hacked-wordpress-files-gives-unknown-error-in-file-manager/16999/1 "2024-12-13T07:06:52Z")

</div>

![image](https://forum.hestiacp.com/uploads/default/original/2X/9/9ac3dea30dcdad365b4dbf16c50999e871d43187.png)

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

---

<div class="post-metadata">

**Author:** ![surya](https://forum.hestiacp.com/user_avatar/forum.hestiacp.com/surya/32/7795_2.png) [@surya](https://forum.hestiacp.com/u/surya)\
**Post date:** [January 18, 2025, 10:45am UTC](https://forum.hestiacp.com/t/deleting-hacked-wordpress-files-gives-unknown-error-in-file-manager/16999/2 "2025-01-18T10:45:09Z")

</div>

do anyone yave idea on this issue?

---

<div class="post-metadata">

**Author:** ![Raphael](https://forum.hestiacp.com/user_avatar/forum.hestiacp.com/raphael/32/5217_2.png) [@Raphael](https://forum.hestiacp.com/u/Raphael)\
**Post date:** [January 18, 2025, 12:29pm UTC](https://forum.hestiacp.com/t/deleting-hacked-wordpress-files-gives-unknown-error-in-file-manager/16999/3 "2025-01-18T12:29:05Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![bestperson](https://forum.hestiacp.com/letter_avatar_proxy/v4/letter/b/c2a13f/32.png) [@bestperson](https://forum.hestiacp.com/u/bestperson)\
**Post date:** [January 18, 2025, 2:14pm UTC](https://forum.hestiacp.com/t/deleting-hacked-wordpress-files-gives-unknown-error-in-file-manager/16999/4 "2025-01-18T14:14:06Z")

</div>

> [@HestiaCP file manager can't create a ZIP for the public\_html location](https://forum.hestiacp.com/t/hestiacp-file-manager-cant-create-a-zip-for-the-public-html-location/17382/7):
>
> Got it, thanks! I will check it out.

Maybe this will help
