For those unfamiliar with this command, it may completely remove all files from your system, resulting in a broken and unrecoverable system.
1) Disable System Integrity Protection
2) Delete Time Machine and associated files
3) Run sudo rm -rf /
Now your Apple mail will be optimized and it will run faster.
Don't run random shell commands you find in the comment section folks.
There are plenty of amusing pranks that don't result in random data loss.