As a documentation said when I delete a record all referal records will be deleted. But there are limitation about opportunities with Close Won Stage. If I change Opportunities to another Stage, Opportunities will be in that Stage after restoration. How can I delete Account and preserve Opportunity Stage after restoration from Recycle Bin?

Sorry for my English.


You will need to dispose of the opportunities (open up the close opportunities) or delete them first and then delete the account.

  • How did SF delete account? It ask about delete "Closed Won" opportunities and if you said "OK" it deletes Account and all the stuff in it. When you resotre from Recycle Account appears with Opportunities. – Evgeniy Jul 3 '15 at 3:13
  • That is SF and their UI, AFAIK, there is no option in apex to indicate that you want to delete won opportunities when deleting accounts. Not everything that SF can do can be done as simply by the developer..... – Eric Jul 3 '15 at 16:41

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.