Activity › Forums › Salesforce® Discussions › How to delete Accounts created in the last 7 days in Salesforce? Salesforce® Discussions How to delete Accounts created in the last 7 days in Salesforce? Posted by Shweta on October 7, 2020 at 4:39 PM How to delete Accounts created in the last 7 days in Salesforce? Aditya replied 5 years, 7 months ago 2 Members · 1 Reply 1 Reply Aditya Member October 7, 2020 at 8:18 PM Select id from TechM__c where CreatedDate <= 2016-11-15T00:00:00Z Select id from TechM__c where DAY_ONLY(CreatedDate) <= 2016-11-15Select id from TechM__c where CreatedDate <= YESTERDAY Select id from TechM__c where CreatedDate = TODAY Log In to reply. Public All Members My Connections Only Me PublicAll MembersMy ConnectionsOnly Me Public All Members My Connections Only Me