--- title: "Deleting data to free disk space using the CLI" slug: "deleting-data-to-free-disk-space-using-the-cli" tags: ["Endpoint Security (HX)", "Product Usage"] updated: 2026-09-23T17:25:03Z published: 2026-09-23T17:25:03Z canonical: "docs.trellix.com/deleting-data-to-free-disk-space-using-the-cli" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.trellix.com/llms.txt > Use this file to discover all available pages before exploring further. # Deleting data to free disk space using the CLI After you have analyzed the disk space use, you can delete data to free the disk space you need. **To delete data to free disk space:** 1. Go to CLI configuration mode: ``` hostname > enable hostname # configure terminal ``` 2. Delete data: ``` hostname (config) # system cleanup profile {backups | fedb-backups | logs | malicious-artifacts | nonmalicious-artifacts | reports |snapshots | sysdumps | tcpdumps | temp-files} {all | older-than } [force] ``` where: - **all** deletes all data that can be deleted for this profile - **older-than ** deletes data that is older than the specified number of days - **force** deletes the data as requested without prompting for confirmation If you do not use the `force` option, the command prompts for confirmation. For example, the following deletes data that matches the `logs` profile. It deletes only data that can be deleted that is older than 180 days. ``` hostname (config) # system cleanup profile logs older-than 180 This will remove cleanable files older than 180 days for the profile 'logs'. Do you want to continue? [y/n]: y 25 MB of disk space freed. ``` :