how do i empty my mailbox

Look at the bottom right of the PM page and see where it says to Export as.
This way you can save them as a file.
txt would be just a list of messages and csv is searchable with Microsoft Excel in case you look for something specific in the file (like a screen name, or a subject)