# About system maintenance

**URL:** <https://forums.suse.com/t/about-system-maintenance/34956>\
**Category:** SLED Configure-Administer\
**Created:** [April 15, 2020, 11:57am UTC](https://forums.suse.com/t/about-system-maintenance/34956 "2020-04-15T11:57:35Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nikos](https://avatars.discourse-cdn.com/v4/letter/n/34f0e0/32.png) [@Nikos](https://forums.suse.com/u/Nikos)\
**Post date:** [April 15, 2020, 11:57am UTC](https://forums.suse.com/t/about-system-maintenance/34956/1 "2020-04-15T11:57:35Z")

</div>

Hello everyone. I have a couple of questions:

1. Besides “sudo zypper clean” and “sudo zypper packages --orphaned”, are there any other terminal commands for cleaning up my system?
2. Can I safely empty the “Temp” folder?  
Thanks in advance for your time.

---

<div class="post-metadata">

**Author:** ![dom](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/dom/32/9080_2.png) [@dom](https://forums.suse.com/u/dom)\
**Post date:** [June 24, 2020, 9:33am UTC](https://forums.suse.com/t/about-system-maintenance/34956/2 "2020-06-24T09:33:15Z")

</div>

1. According to `man 8 zypper` there is also `sudo zypper purge-kernels` which will delete the old kernels based on the configuration at `/etc/zypp/zypp.conf `.
2. For the `tmp` folder I quote an openSUSE wiki entry:

> Usually application should delete temporary files when they quit or set a expiring date. However, not all applications do it correctly and many files will stay there forever. Operating system and applications will not be broken by removing these files. But you should keep in mind, some running application may have unsaved data stored here. For example, screenshot, office documents, files in downloading progress. Deleting files may interrupt the application and you will lose unsaved data. That’s why you must quit all applications before running this command.

1. You can have a look at `man 1 journalctl`. Specifically at `--vacuum-time=XX` where XX is the time span of log files to keep. For example `sudo journalctl --vacuum-time=1w` will keep the log files from the last week only.
