Sometimes it is easier to just reinstall WordPress to clean up any edited files or after a hack.
Under Dashboard -> Updates there is a button to reinstall your WordPress installation.

Please note: If the changes made were done by your developer to fix a particular issue with the website, you will loose these changes when you reinstall WordPress.
If you have any doubt, please reach out to your website administrator.
Written by Lars Koudal
Get AI-Powered Security Summary
Let AI analyze this WordPress security article and provide actionable insights from WP Security Ninja experts.
Trusted WordPress Security Expert
