I have several folders inside my object store, and i want to implement a sweep policy for housekeeping. The idea is that any files/subfolders/documents inside one of my several "main" folders needs to be deleted if they are more than one month old.
I understand that i can do this by using sweep policy, but i have no idea about how to do it.
Probably something to mention, all subfolders in my object store have their own class, but the main folders share one class, "Folder". Can anyone help with a guide or something about this? I've been to the IBM site and it's not helping much. Thanks.
I figured it out, with @fnt 's help:
Object deletion automated by using disposal policy, not the standard sweep. Disposal policy deletes things in the object store based on the object class. Since the target of my disposal already has a class, i can just use that as the base.
The Filter expression is an SQL WHERE query, this is what i put in it:
DateCreated < Now() - Timespan (30, 'Days') AND PathName LIKE '%Application%'
Both INFOLDER and CONTAINS did not work. While i still cannot figure out why INFOLDER doesn't work, CONTAINS apparently requires both the object store and object class of your disposal to be CBR-enabled, which i don't have.