Get the list of AGIDs that had the bad data:
db2 -x "select agid_name from arsag where name in ('AppGroup1','AppGroup2') >ListOfAGs.txt
Alternately, go into /arscache/cache1/retr and do this to clear out EVERYTHING, except the System Log:
ls -1 ??? >ListOfAGs.txt
That's Ell, Ess, Space, Dash, One, Space, Question, Question, Question, just for clarity's sake.
Once you have your list:
for i in `cat ListOfAGs.txt`
do
rm -r /arscache/cache1/*/$i
rm -r /arscache/cache2/*/$i
# And so on...
done
That'll clear out (anything that has the bad data/everything), one AG at a time.
You use this code at your own risk!