From a Pentest perspective
- Make the system/network as it was when you entered it
- Remove executables, scripts, and added files
- Remove malware, rootkits, and added user accounts
- Set settings back to original configurations
Clean Up from a Red Team or Hacker perspective
Make it look like you were never there which is the same in pentest also but it goes deeper into eliminating yourself from log files.