We often get questions about how to manage purging old data (finished processes instances, task histories, etc.) from SOA and BPM 11g when those data are no longer wanted.
There are some scripts provided to do this in 18.104.22.168, 22.214.171.124 and new, improved ones in 126.96.36.199. Now, the scripts from 188.8.131.52 (which are better) have been backported to 184.108.40.206 and 220.127.116.11 so that customers who have not upgraded yet can also take advantage of the updated scripts. For more information on this, please log on to My Oracle Support and take a look at Note 1297250.1, and patch 10297850.
In addition to this, Demed L’Her from our product management team has posted some more detailed information about the various options available here.