# Disk space full - what files, folders are safe to delete?

**URL:** <https://community.f5.com/t/disk-space-full-what-files-folders-are-safe-to-delete/74428>\
**Category:** Technical Forums\
**Tags:** security, devops, application-delivery\
**Created:** [April 27, 2024, 11:45am UTC](https://community.f5.com/t/disk-space-full-what-files-folders-are-safe-to-delete/74428 "2024-04-27T11:45:44Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![rg-f5](https://avatars.discourse-cdn.com/v4/letter/r/73ab20/32.png) [@rg-f5](https://community.f5.com/u/rg-f5)\
**Post date:** [April 27, 2024, 11:45am UTC](https://community.f5.com/t/disk-space-full-what-files-folders-are-safe-to-delete/74428/1 "2024-04-27T11:45:44Z")

</div>

Hi I’ve searched Dev Central for help with clearing disk space.

I am happy to use bash as I have now figured out how to display files within var/log directory and use the “rm” command to remove files.

I can see the files within the var/log

I have read articles about maintaining disk space.

I have deleted ucs, software images.

These files are at “.1 or .2.gz” 0 or not even on any of the F5 var/log directories

/dev/mapper/vg--db--vda-dat.log 2.9G 2.9G 0 100% /var/log

/dev/mapper/vg--db--vda-dat.share 15G 5.4G 8.5G 39%

So far I have the above.

What files are safe to delete from the /var/log or any other directories?

Or can I delete file contents silently without affecting performance or service?

What would be good bash commands to rm or clear files/ folders?

---

<div class="post-metadata">

**Author:** ![F5\_Design\_Engineer](https://d1p9zq3aats0t8.cloudfront.net/user_avatar/community.f5.com/f5_design_engineer/32/2479_2.png) [@F5\_Design\_Engineer](https://community.f5.com/u/F5_Design_Engineer)\
**Post date:** [April 28, 2024, 2:55am UTC](https://community.f5.com/t/disk-space-full-what-files-folders-are-safe-to-delete/74428/2 "2024-04-28T02:55:29Z")

</div>

download WINSCP and connect using scp protocol or SFTP. change the advance settings use bash shell for defaults folder ,navigate to the /var folder, you can now check and select what does you like to delete&nbsp; navigate and delete from WINSCP like windows explorer

Don’t delete files from production boxes without taking a proper ucs backup and also take qkview.

---

<div class="post-metadata">

**Author:** ![rg-f5](https://avatars.discourse-cdn.com/v4/letter/r/73ab20/32.png) [@rg-f5](https://community.f5.com/u/rg-f5)\
**Post date:** [April 28, 2024, 9:38am UTC](https://community.f5.com/t/disk-space-full-what-files-folders-are-safe-to-delete/74428/3 "2024-04-28T09:38:03Z")

</div>

Thanks this actually helps a lot. But what files are safe to delete in /var/log folder without causing any issues?

I understand UCS backups.

---

<div class="post-metadata">

**Author:** ![zamroni777](https://d1p9zq3aats0t8.cloudfront.net/user_avatar/community.f5.com/zamroni777/32/1473_2.png) [@zamroni777](https://community.f5.com/u/zamroni777)\
**Post date:** [April 29, 2024, 11:31am UTC](https://community.f5.com/t/disk-space-full-what-files-folders-are-safe-to-delete/74428/4 "2024-04-29T11:31:24Z")

</div>

you can check via ls in ssh console or sftp above to see which files in /var/log has big size

/var/log/ltm might be the one as log command in irules usually writes to it.

instead of delete, you can empty the file using command “cat /dev/null \> /var/log/thefilename”

---

<div class="post-metadata">

**Author:** ![Paulius](https://d1p9zq3aats0t8.cloudfront.net/user_avatar/community.f5.com/paulius/32/21698_2.png) [@Paulius](https://community.f5.com/u/Paulius)\
**Post date:** [April 29, 2024, 12:39pm UTC](https://community.f5.com/t/disk-space-full-what-files-folders-are-safe-to-delete/74428/5 "2024-04-29T12:39:47Z")

</div>

This article might help a bit.

> **[myF5](https://my.f5.com/manage/s/article/K14403)**
