Well It would be lot easier if you use the rule.
Or else you need to create the scheduler which keep on running and checking each time in all the specialized type folder for all the contents residing under that and can filter out the rest of the contents.
// get all the specialized type folder
//iterate through each
// get all the documents inside specific folder
//remove all the non specialized content from the folder