Archive, Spam, Delete

What does each of these do specially in regards to the file system and db?