{"id":789,"date":"2014-12-31T12:16:22","date_gmt":"2014-12-31T12:16:22","guid":{"rendered":"http:\/\/www.greytrix.com\/blogs\/salesforce\/?p=789"},"modified":"2025-06-20T06:49:08","modified_gmt":"2025-06-20T06:49:08","slug":"delete-all-records-from-a-custom-object","status":"publish","type":"post","link":"https:\/\/www.greytrix.com\/blogs\/salesforce\/2014\/12\/31\/delete-all-records-from-a-custom-object\/","title":{"rendered":"Delete all records from a Custom Object"},"content":{"rendered":"<p>There are times when we would like to clear all the data from a particular custom object in Salesforce. For those who do not want to write code in Apex there is a way in which one can delete all the data of a custom object using the Salesforce.com User Interface. \u00a0In order to do this, we need to first make sure the custom object truncate is enabled in the User Interface settings.<\/p>\n<p>To do this, navigate to Setup &gt;&gt; Customize &gt;&gt; User Interface. Select the \u201cEnable Custom Object Truncate\u201d setting in the Setup section as shown below and save the changes.<a href=\"https:\/\/www.greytrix.com\/blogs\/salesforce\/wp-content\/uploads\/2014\/12\/User-Interface.jpg\"><img fetchpriority=\"high\" decoding=\"async\" class=\"aligncenter wp-image-790\" src=\"https:\/\/www.greytrix.com\/blogs\/salesforce\/wp-content\/uploads\/2014\/12\/User-Interface.jpg\" alt=\"User Interface\" width=\"664\" height=\"489\" \/><\/a><\/p>\n<p>Now open the custom object definition page for the custom object. To do this, Navigate to Setup &gt;&gt; App Setup &gt;&gt; Create &gt;&gt; Objects. Click on the required object to open the custom object definition page. Click on Truncate button.\u00a0<a href=\"https:\/\/www.greytrix.com\/blogs\/salesforce\/wp-content\/uploads\/2014\/12\/Custom-Object-Definition.jpg\"><img decoding=\"async\" class=\"aligncenter  wp-image-791\" src=\"https:\/\/www.greytrix.com\/blogs\/salesforce\/wp-content\/uploads\/2014\/12\/Custom-Object-Definition.jpg\" alt=\"Custom Object Definition\" width=\"701\" height=\"254\" \/><\/a><\/p>\n<p>This will open a confirmation popup. Enter the name of the object in the field and click Truncate. \u00a0All records in that custom object will now be deleted.<\/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=\"Get key prefix of an object using Apex\" href=\"https:\/\/www.greytrix.com\/blogs\/salesforce\/2014\/12\/31\/get-key-prefix-of-an-object-using-apex\/\" target=\"_blank\" rel=\"noopener\">Get key prefix of an object using Apex\u00a0<\/a><\/li>\n<li><a title=\"Delete apex class or trigger in Salesforce Production Org\" href=\"https:\/\/www.greytrix.com\/blogs\/salesforce\/2014\/11\/29\/delete-apex-class-or-trigger-in-salesforce-production-org\/\" target=\"_blank\" rel=\"noopener\">Delete apex class or trigger in Salesforce Production Org<\/a><\/li>\n<li><a title=\"Quick way to find out the release of Salesforce Instance\" href=\"https:\/\/www.greytrix.com\/blogs\/salesforce\/2014\/11\/29\/quick-way-to-find-out-the-release-of-salesforce-instance\/\" target=\"_blank\" rel=\"noopener\">Quick way to find out the release of Salesforce Instance<\/a><\/li>\n<li><a title=\"Quick way to find edition of Salesforce\" href=\"https:\/\/www.greytrix.com\/blogs\/salesforce\/2014\/11\/29\/quick-way-to-find-edition-of-salesforce\/\" target=\"_blank\" rel=\"noopener\">Quick way to find edition of Salesforce<\/a><\/li>\n<li><a title=\"Invoke Future Methods through Apex Trigger for web service callout\" href=\"https:\/\/www.greytrix.com\/blogs\/salesforce\/2014\/10\/30\/invoke-future-methods-through-apex-trigger-for-web-service-callout\/\" target=\"_blank\" rel=\"noopener\">Invoke Future Methods through Apex Trigger for web service callout<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>There are times when we would like to clear all the data from a particular custom object in Salesforce. For those who do not want to write code in Apex there is a way in which one can delete all the data of a custom object using the Salesforce.com User Interface. \u00a0In order to do\u2026 <span class=\"read-more\"><a href=\"https:\/\/www.greytrix.com\/blogs\/salesforce\/2014\/12\/31\/delete-all-records-from-a-custom-object\/\">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":[2],"tags":[68],"class_list":["post-789","post","type-post","status-publish","format-standard","hentry","category-gumu-salesforce","tag-custom-object"],"_links":{"self":[{"href":"https:\/\/www.greytrix.com\/blogs\/salesforce\/wp-json\/wp\/v2\/posts\/789","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=789"}],"version-history":[{"count":2,"href":"https:\/\/www.greytrix.com\/blogs\/salesforce\/wp-json\/wp\/v2\/posts\/789\/revisions"}],"predecessor-version":[{"id":10986,"href":"https:\/\/www.greytrix.com\/blogs\/salesforce\/wp-json\/wp\/v2\/posts\/789\/revisions\/10986"}],"wp:attachment":[{"href":"https:\/\/www.greytrix.com\/blogs\/salesforce\/wp-json\/wp\/v2\/media?parent=789"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.greytrix.com\/blogs\/salesforce\/wp-json\/wp\/v2\/categories?post=789"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.greytrix.com\/blogs\/salesforce\/wp-json\/wp\/v2\/tags?post=789"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}