If you want to delete them, then I would create saved searches that identifies the records to be deleted. Type/Internal ID must be specified in the results columns. Then create a map/reduce script with 2 parameters. One for doing a "test run" where it can log the count/information on records to be deleted but doesn't actually delete for verification purposes and another that is a list/record of type saved search that specifies the search to run. Have the map/reduce get the saved search results in getInputData(...) (type and internal ID) and for each reduce(...) delete the record given the type/ID.