how to decrease the size of wordpress site after installing the wordfence

Recently i had a malicious attack on my wordpress website through the EA for elementor , after that i downloaded some plugins for security and monitoring activity , like activity log for logs and wordfence . But after that my site size increased froM 15 GB to 52 GB , and i dont understand why this happened , though i was warned about wordfence , that it would take considerably large amount of resource , but i did’nt expected that much.

​

itried to optimize my website by wp-optimize , but i did’nt see much difference .

i’m using updraft plus for backup , it is taking 21 GB, i did deleted all the old backups

​

**due to malicious activity on my website , i update the wordpress and theme and many other plugins like elementor etc.**

>is there way , i can reduce my website size , by deleting unnecessary files . i have hosted my site on aws server.

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer