How to reduce disk usage in future
To help prevent the problem from returning, you can reduce how much data MetaTrader stores.
Limit chart history
Large chart-history settings can increase both disk usage and memory usage over time.
In MT4 or MT5, go to Tools > Options.
Open the Charts tab.
Lower Max bars in history and Max bars in chart to a smaller value such as 5000.
Disable news and alerts
If you do not use these features, turning them off can reduce unnecessary stored data and event logging.
Go to Tools > Options > Server.
Uncheck Enable news.
Open the Events tab.
Uncheck Enable to stop sound alert logs.
Quick summary
Open MetaTrader
Go to File > Open Data Folder
Clear files from logs
Clear files from MQL4/Logs or MQL5/Logs
Clear files from tester/logs
Reduce Max bars in history and Max bars in chart
Disable news and unnecessary alert events if you do not use them