Script to delete Assets based on Assetgroup

I have citrix VDI devices which add up over time and eat up my licenses. Looking for a script (API call) to delete them automatically.

what about setting a shorter retention on them?

We have about 4000 VDI every day and it creates an issue with licensing. Current retention is 30 Days. Shorting that would create issue with reporting.

You would still need to get a list of assets needing to be deleted, but there is a REST endpoint InsightVM API (v3)

Are these persistent or non-persistent Citrix VDI? If they are non-persistent then you might look into only scanning the master image the clones boot from. The vulnerabilities on the clones will be the same as the master image.

These are non-persistent. we are also MDR customer. We want the agent on to monitor users. unfortunately rapid7 doesn’t have an option to turn off vulnerability scanning on a portion of their agents.

Hi @biju_vaderiyattil
Actually if you ask the support they might be able to help you. Check out this discussion - > InsightAgents, Assets Repopulating - Exceeding License Coverage