You can create an asset purge rule to purge or delete either of the following types of assets:
- Cloud agent-based assets
- Cloud provider metadata-based assets
- Scan-based assets
After you create the asset purge rule, it runs once on a daily basis. After the rule runs, the unnecessary assets are deleted and not shown in your inventory.
Complete the following steps to create a new rule:
1. Go to Rules > Asset Purge Rules > Create Rule.
2. Provide the rule name and rule description, and click Next.
3. Click the Plus icon to select the required asset purge criteria. Select one of the following purge criteria.
- Add Cloud Agent-Based Criteria
- Add Cloud Provider Metadata-Based Criteria
- Add Scan-Based Criteria
Note: You can select the Time-Based criteria only along with the other criteria.
4. Select one of the following options and complete the required steps:
Add Cloud Agent-Based CriteriaAdd Cloud Agent-Based Criteria
i. Select the attributes and operator to identify assets you want to purge.
The available attribute values are lastActivity, lastCheckedIn, activatedForModule, agentActivationKey, agentVersion, and configurationProfile.
The available operators are OLDER THAN and IN LAST.
ii. Select the value from the third column based on the attribute and operator you selected.
iii. By clicking the Add icon, you can add multiple attributes.
iv. Click Add Filter to add a filter. You can add filters from the Add Cloud Provider Metadata-Based criteria or Add Time-Based Criteria only.
Note: If you select the Remove the cloud agent and associated license check box, assets, a cloud agent, and its license will be removed from your subscription.
Example:
Add Cloud Provider Metadata-Based CriteriaAdd Cloud Provider Metadata-Based Criteria
i. Select the cloud provider, such as AWS, AZURE, or GCP.
ii. Select the attribute and operator.
iii. Select the value from the third column based on the attribute and operator you selected.
iv. By clicking the Add icon, you can add multiple attributes.
Note: If you select the Remove the cloud agent and associated license check box, Assets, a cloud agent, and its license will be removed from your subscription.
v. Click Add Filter to add a filter. You can only add filters from either the Add Cloud Agent-Based Criteria or Add Time-Based Criteria.
Example:
Add Scan-Based CriteriaAdd Scan-Based Criteria
i. Choose to retain any or all tracking methods in IP, DNSNAME, or NETBIOS as required.
ii. Click Add Filter to add an additional filter. You can only add filters from the Add Time-Based Criteria.
iii. Select the attributes and operator.
The available attribute values are lasVmScanDate, updated, and lastCompiledScanDate.
The available operators are OLDER THAN and IN LAST.
iv. Select the value from the third column based on the attribute and operator you selected.
v. By clicking the Add icon, you can add multiple attributes.
Example:
5. Click Next.
6. Set purge limit criteria, and click Next.
Note: If you select more assets than this set limit, your assets won't be purged.
7. Review and confirm your selections. If required, you can edit the basic details, Asset Scope, and Settings from this step.
8. Click Finish to save the purge rule. A confirmation message is shown.
9. Select the Save my purge rule check box, and click Confirm.
Your purge rule will run daily. All assets matching your rule will be purged.
You can edit, delete, enable, or disable the purge rule from the Quick Actions menu.