You need to sign in to do that
Don't have an account?
SA_Dev
How to delete Account Share records?
Hi All,
I am trying to delete Account Share records using apex. Kindly le me know, if it is possible and how.
Note:- The is no AccountTeamMember record for those share record. we just need to delete AccountShare records.
Regards
Sunil Arora
Query for the Share records and then issue a delete against them.
The Apex ref guide gives and example :
http://www.salesforce.com/us/developer/docs/apexcode/Content/apex_bulk_sharing_recalc.htm
Look closely at the code : in there you'll find deletes of the JobShare record.