Deleting data to free disk space using the CLI

Prev Next

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 <no. of days>} [force]

    where:

    • all deletes all data that can be deleted for this profile

    • older-than <no. of days> 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.