Testing Compliance with Delete after Retention

The use of the Compliance settings on a bucket allow you to make sure that no files are deleted ahead of a certain time, and with the option to delete after retention, you can automatically have files deleted when that period concludes. Here's a quick test to show you this: 

Testing the system deleting files when setting versioning and Compliance and setting a delete after retention time:

  1.  Set up bucket with versioning enabled. I made my test bucket named “mikeo-test-delete-after-retention”

  2. Then also set compliance
    Note that for this example, I set the retention time to be only 1 day. You may set that to be in days/weeks/months or years (but you cannot set it in hours).

  3. Now, copy your files up to that bucket, Notice that these test files look as follows:

  4. And, since we have versioning enabled, If I copy up one of the files AGAIN, the old image is kept as a version and not displayed unless you select the Show Versions Icon (the clock in the upper right of the screen:

  5. Now, when we go back to the system ONE day after the files were created (I set the compliance time to be ONE DAY. The files will be gone.  So, moments after my one day retention period expires, I see this in my bucket:
Have more questions? Submit a request