{"id":575,"date":"2014-06-03T11:45:56","date_gmt":"2014-06-03T11:45:56","guid":{"rendered":"http:\/\/www.greytrix.com\/blogs\/salesforce\/?p=575"},"modified":"2025-05-15T10:18:03","modified_gmt":"2025-05-15T10:18:03","slug":"delete-multiple-records-from-custom-object-in-salesforce","status":"publish","type":"post","link":"https:\/\/www.greytrix.com\/blogs\/salesforce\/2014\/06\/03\/delete-multiple-records-from-custom-object-in-salesforce\/","title":{"rendered":"Delete multiple records from custom object in Salesforce"},"content":{"rendered":"<p>While working with Salesforce custom objects, we inserted a bunch of records in that object during testing. We wanted to bulk delete the records from the custom object using the standard Salesforce view screen that is shown below &#8211;<\/p>\n<p><a href=\"https:\/\/www.greytrix.com\/blogs\/salesforce\/wp-content\/uploads\/2014\/06\/std-sf-view-screen.png\"><img fetchpriority=\"high\" decoding=\"async\" class=\"aligncenter wp-image-576 size-full\" title=\"std sf view screen\" src=\"https:\/\/www.greytrix.com\/blogs\/salesforce\/wp-content\/uploads\/2014\/06\/std-sf-view-screen.png\" alt=\"std sf view screen\" width=\"1014\" height=\"166\" \/><\/a>However, we can only delete one record at a time using this screen.\u00a0 It is not possible to delete multiple records at once.<\/p>\n<p>To overcome this limitation in the standard salesforce view screen, we used the developer console to delete multiple records. (The developer console is available for all administrator users in salesforce)<\/p>\n<p>To access the Salesforce Developer Console, navigate to your account name &gt;&gt; Developer Console<a href=\"https:\/\/www.greytrix.com\/blogs\/salesforce\/wp-content\/uploads\/2014\/06\/developer-console.png\"><img decoding=\"async\" class=\"aligncenter wp-image-577 size-full\" title=\"developer console\" src=\"https:\/\/www.greytrix.com\/blogs\/salesforce\/wp-content\/uploads\/2014\/06\/developer-console.png\" alt=\"developer console\" width=\"254\" height=\"145\" \/><\/a>The developer console will open as shown below &#8211;<a href=\"https:\/\/www.greytrix.com\/blogs\/salesforce\/wp-content\/uploads\/2014\/06\/dev-console-1.png\"><img decoding=\"async\" class=\"aligncenter wp-image-578\" title=\"dev console 1\" src=\"https:\/\/www.greytrix.com\/blogs\/salesforce\/wp-content\/uploads\/2014\/06\/dev-console-1.png\" alt=\"dev console 1\" width=\"651\" height=\"390\" \/><\/a>Here execute a select query for the custom object in Query Editor Window. An example is shown below-<br \/>\n<b>SELECT ID,First_Name__c,Last_Name__c,Address__c,Email__c FROM Test_Custom__c<\/b><\/p>\n<p>Once the query is executed, the resultant data will appear in grid format &#8211;\u00a0<a href=\"https:\/\/www.greytrix.com\/blogs\/salesforce\/wp-content\/uploads\/2014\/06\/dev-console-2.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-579 size-full\" title=\"dev console 2\" src=\"https:\/\/www.greytrix.com\/blogs\/salesforce\/wp-content\/uploads\/2014\/06\/dev-console-2.png\" alt=\"dev console 2\" width=\"1013\" height=\"614\" \/><\/a>Now the user can simply select all the required records and hit the \u201cDelete Row\u201d button to delete multiple records using a single click of the Delete button.<\/p>\n<p><span style=\"font-size: Medium;\"><strong>About Us<\/strong><\/span><br \/>\n<a href=\"https:\/\/www.greytrix.com\/\">Greytrix<\/a> as a Salesforce Product development partner offers a wide variety of integration products and services to the end users as well as to the Partners across the globe. We offers Consultation, Configuration, Training and support services in out-of-the-box functionality as well as customizations to incorporate custom business rules and functionalities that requires apex code incorporation into the Salesforce platform.<\/p>\n<p><a href=\"https:\/\/www.greytrix.com\/\">Greytrix<\/a> has some unique solutions for Cloud CRM such as Salesforce integration with <a href=\"https:\/\/www.greytrix.com\/product\/sage-x3\/gumu-x3-salesforce-integration\">Sage Enterprise Management (Sage X3<\/a>), Sage Intacct, <a href=\"https:\/\/www.greytrix.com\/product\/sage-100-erp\/gumu-100-salesforce-integration\">Sage 100 <\/a>and <a href=\"https:\/\/www.greytrix.com\/product\/sage-300-erp\/gumu-300-salesforce-integration\">Sage 300 (Sage Accpac)<\/a>. We also offer best-in-class Cloud CRM <a href=\"https:\/\/www.greytrix.com\/product\/crm-development\/salesforce-com\">Salesforce customization and development services<\/a> along with services such as Salesforce <a href=\"https:\/\/www.greytrix.com\/product\/professional-services\/data-migration-services\">Data Migration<\/a>, <a href=\"https:\/\/www.greytrix.com\/product\/professional-services\/integrated-application-development\">Integrated App development<\/a>, <a href=\"https:\/\/www.greytrix.com\/product\/professional-services\/custom-development\">Custom App development<\/a> and <a href=\"https:\/\/www.greytrix.com\/product\/professional-services\/maintenance-support\">Technical Support<\/a> to business partners and end users.<\/p>\n<p>Greytrix GUMU&#x2122; integration for Sage ERP \u2013 Salesforce is a 5-star app listed on <a href=\"https:\/\/appexchange.salesforce.com\/listingDetail?listingId=a0N30000000psM5EAI\" target=\"_blank\" rel=\"noopener\">Salesforce AppExchange<\/a>.<\/p>\n<p>For more information, please contact us at <a href=\"mailto:salesforce@greytrix.com\">salesforce@greytrix.com<\/a>. We will be glad to assist you.<\/p>\n<p><strong><span style=\"font-size: Medium;\">Related Posts<\/span><\/strong><\/p>\n<ul>\n<li><a title=\"Freezing Salesforce users\" href=\"https:\/\/www.greytrix.com\/blogs\/salesforce\/2014\/06\/02\/freezing-salesforce-users\/\" target=\"_blank\" rel=\"noopener\">Freezing Salesforce users<\/a><\/li>\n<li><a title=\"Prevent page redirection on Apex Command Button through JavaScript\" href=\"https:\/\/www.greytrix.com\/blogs\/salesforce\/2014\/05\/27\/prevent-page-redirection-on-apex-command-button-through-javascript\/\" target=\"_blank\" rel=\"noopener\">Prevent page redirection on Apex Command Button through JavaScript<\/a><\/li>\n<li><a title=\"Testing Deliverability of an Email sent from Salesforce\" href=\"https:\/\/www.greytrix.com\/blogs\/salesforce\/2014\/05\/22\/testing-deliverability-of-an-email-sent-from-salesforce\/\" target=\"_blank\" rel=\"noopener\">Testing deliverability of an Email sent from Salesforce<\/a><\/li>\n<li><a title=\"Prevent Salesforce Emails from ending up in Spam Folder\" href=\"https:\/\/www.greytrix.com\/blogs\/salesforce\/2014\/05\/21\/prevent-salesforce-emails-from-ending-up-in-spam-folder\/\" target=\"_blank\" rel=\"noopener\">Prevent Salesforce Emails from ending up in Spam Folder<\/a><\/li>\n<li><a title=\"One link direct login to Salesforce\" href=\"https:\/\/www.greytrix.com\/blogs\/salesforce\/2014\/04\/21\/one-link-direct-login-to-salesforce\/\" target=\"_blank\" rel=\"noopener\">One link direct login to Salesforce<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>While working with Salesforce custom objects, we inserted a bunch of records in that object during testing. We wanted to bulk delete the records from the custom object using the standard Salesforce view screen that is shown below &#8211; However, we can only delete one record at a time using this screen.\u00a0 It is not\u2026 <span class=\"read-more\"><a href=\"https:\/\/www.greytrix.com\/blogs\/salesforce\/2014\/06\/03\/delete-multiple-records-from-custom-object-in-salesforce\/\">Read More &raquo;<\/a><\/span><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[68,610,617,519],"class_list":["post-575","post","type-post","status-publish","format-standard","hentry","category-salesforce-srv","tag-custom-object","tag-custom-object-in-salesforce","tag-query-editor-window","tag-views"],"_links":{"self":[{"href":"https:\/\/www.greytrix.com\/blogs\/salesforce\/wp-json\/wp\/v2\/posts\/575","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.greytrix.com\/blogs\/salesforce\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.greytrix.com\/blogs\/salesforce\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.greytrix.com\/blogs\/salesforce\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.greytrix.com\/blogs\/salesforce\/wp-json\/wp\/v2\/comments?post=575"}],"version-history":[{"count":5,"href":"https:\/\/www.greytrix.com\/blogs\/salesforce\/wp-json\/wp\/v2\/posts\/575\/revisions"}],"predecessor-version":[{"id":10767,"href":"https:\/\/www.greytrix.com\/blogs\/salesforce\/wp-json\/wp\/v2\/posts\/575\/revisions\/10767"}],"wp:attachment":[{"href":"https:\/\/www.greytrix.com\/blogs\/salesforce\/wp-json\/wp\/v2\/media?parent=575"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.greytrix.com\/blogs\/salesforce\/wp-json\/wp\/v2\/categories?post=575"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.greytrix.com\/blogs\/salesforce\/wp-json\/wp\/v2\/tags?post=575"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}