--- title: "ntap pcap cleanup retain days force" slug: "ntap-pcap-cleanup-retain-days-force" tags: ["Reference", "CMS 11.x", "EX 11.x", "HX 10.x", "FX 11.x", "AX 11.x", "NX 11.x", "IVX 11.x", "Customer", "Network Security"] updated: 2026-08-04T17:23:09Z published: 2026-08-04T17:23:09Z canonical: "docs.trellix.com/ntap-pcap-cleanup-retain-days-force" stale: true --- > ## 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. # ntap pcap cleanup retain days force Cleans older pcap artifacts from the managed defense pcap directory. Use the `retain` parameter to configure the retention period, if required. Use the `force` parameter to schedule a regular automated cleanup. On using this CLI, you will receive a request to confirm the amount of data that will be deleted. Once you confirm, the mentioned data will be deleted. > [!NOTE] > Note > > The pcap artifacts, once deleted, can never be restored. ### Syntax `ntap pcap cleanup` `ntap pcap cleanup retain <numberOfDays> days` > [!NOTE] > Note > > User confirmation is not required for scheduling an automated cleanup using the `force` parameter. `ntap pcap cleanup force` `ntap pcap cleanup retain <numberOfDays> days force` ### Parameters `<numberOfDays>` Enter the number of days of which the pcap artifacts should be retained. You can select the number of days from a set (7/30/180/365). Values greater than a year are invalid. ### Examples The following example cleans **all** older pcap artifacts from the managed defense pcap directory. ``` hostname (config) # ntap pcap cleanup Proceeding will remove 10.20MB of pcaps permanently Please confirm by typing (yes/no): yes Operation was successful. NTAP pcap directories for bott cleaned up successfully. Retained pcaps of last 0 days. ``` The following example cleans older pcap artifacts from the managed defense pcap directory and retains artifacts from the last 30 days. ``` hostname (config) # ntap pcap cleanup retain 30 days Proceeding will remove 20.20MB of pcaps permanently Please confirm by typing (yes/no): yes Operation was successful. NTAP pcap directories for bott cleaned up successfully. Retained pcaps of last 30 days. ``` The following example schedules a regular automated cleanup of older pcap artifacts from the managed defense pcap directory and retains artifacts from the last 30 days. > [!NOTE] > Note > > User confirmation is not required for scheduling an automated cleanup using the `force` parameter. ``` hostname (config) # ntap pcap cleanup retain 30 days force Operation was successful. NTAP pcap directories for bott cleaned up successfully. Retained pcaps of last 30 days. ``` ### User role Administrator or analyst or operator ### Command mode Configuration ### Supported appliances This command is supported on the following appliances running the specified releases or later: - **Network Security:** Release 11.0.0