While CloudShark’s packet capture holding capacity is limited only by the size of the disks available to it, many of our CloudShark users are curious about what to do if they want to automatically delete captures after a certain period of time. Some may have certain security requirements about capture contents, or others want to make sure that sensitive data isn’t used for nefarious purposes later.
Whatever the reason, automatically deleting captures is possible with a little scripting and the CloudShark API. Specifically, the delete method, when combined with a little scripting magic, can be set up to run as a cron job to automatically delete captures older than a certain time period.
Want to know how it would work in practice? Our support team has drawn up an example script to auto-prune your captures on a regular basis.