Delete Your Sample Accounts

Unless you want to keep your sample accounts so that you can play with them in the future, run this code to delete them.

Force.com IDE is in a maintenance-only state. We still provide support for the product through our official channels, but updates prior to October 12, 2019 will be only for critical security issues that arise. On October 12, 2019, we will no longer provide support or updates of any kind for Force.com IDE. On that date, we will also begin archiving documentation and removing download links for the product. We recommend that you start migrating to Salesforce Extensions for Visual Studio Code or one of the great tools made by our partners. For more information, see The Future of Salesforce IDEs on the Salesforce Developers Blog.

Warning

  1. Enter this code in the Force.com IDE’s Execute Anonymous pane, in the Source to execute field.
    1List<Account> buggyAccounts = [SELECT Id
    2                          FROM Account 
    3                          WHERE BillingCity = 'Suffragette City'];
    4delete buggyAccounts;
  2. Click Execute Anonymous.
  3. In the Accounts tab of the Salesforce user interface, verify that your accounts have been deleted.