function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Vimala  VemburajanVimala Vemburajan 

Delete Data In Bulk

Hi,
I am trying to delete data from my object, but I am not able to delete bulk data altogether..
User-added image
I am able to delete data one by one but I wanat to clean my all data together ..

Plss help me to achive this 
Thanks.
janardhan mjanardhan m
Hi Vimala,
From Setup, click Data Management | Mass Delete Records and click the link for the type of record to delete. (or)

Write a small logic in developer consle>>anonymous block(ctrl+E)  type like

List<account> acc = [select id,name from account limit 9999]; //write what condition you want...

delete acc;



 
Vimala  VemburajanVimala Vemburajan
Hi Janardhan,
when i am executing List<> command I am getting below error.
The query has to start with 'FIND' or 'SELECT'.

 
salesforce@14salesforce@14
Hi Vimala,
 
You can use Data Loader to delete the Bulk Records.
 
janardhan mjanardhan m
Hi vimala,

In my developer console it is working well.Try again...
List<account> acc = [select id,name from account limit 20];
delete acc;
system.debug('my output '+acc);