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
billkatbillkat 

Deleting records, custom object

Hello all.

 

First off, I'm new to SF, come from a PHP/MySQL background.

 

I'm trying to delete some records out of a custom object, and finding it amazingly hard... as it'd take about 2 secs in something like phpMyAdmin.

 

There's no basic 'empty' option in the Setup

Surprised to find the Data Loader can't delete records based an an External ID, like a SKU

SOQL doesn't have a delete clause so Apex Explorer seems no help in trying to delete, maybe there's a way?

 

Any info/hints on how to go about emptying a custom object, and deleting specific records based on a query, would be much appreciated.

I'm not familiar with Apex classes, hoping there is some interface type method as found in phpMyAdmin, MySQL Explorer type apps,

 

Cheers all.

aalbertaalbert

It is a two-step process, but I just use the Data Loader to run an extract/query of the records I want, then use that success.csv file to run a second data loader process for the Delete.

 

 

billkatbillkat

Thanks aalbert, I'll give that a go, cheers.