Skip to main content
1 of 3
codebandit
  • 1.8k
  • 3
  • 22
  • 29

Internal Salesforce.com error when deleting OpportunityShare records

I am deleting OpportunityShare records with following code in my developer console

List osList = [Select opportunityid from OpportunityShare where UserOrGroupId = '00GG000000XXXXXXXX' And Rowcause = 'Manual']; delete(osList);

The above list has 7400 records and on execution I am getting Internal Salesforce.com Error.

Any Help is appreciated.

codebandit
  • 1.8k
  • 3
  • 22
  • 29