The removing of what is no longer needed. Cleanup is a judgment about what stopped belonging.
Compound of clean (Old English claene) and up (Old English upp); the phrasal verb 'clean up' is recorded from the 18th century, and the compound noun follows it.
The removing of what is no longer needed — a judgment, made after the fact, about what stopped belonging.