New answers tagged delete
3
votes
Accepted
Queries on Large Object (>1 million rows) Fail to Execute
First, a full recycle bin can cause problems, because IsDeleted is not indexed. Consider hard-deleting records as you delete them with the emptyRecycleBin function. I suspect the Queueable is probably ...
0
votes
How can I delete a contact which was associated with a customer portal user?
Through code you can also acheive this. In developer console execute below code:
User u=[select id,Name, IsPortalEnabled from user where id='xyz' limit 1];
u.IsPortalEnabled=false;
update u;
2
votes
Delete Mass records
You can able to delete the custom object records by using Truncating feature without using apex code.
If you do not see Truncate button in the custom object, go to Setup | Customize | User Interface |...
Top 50 recent answers are included
Related Tags
delete × 262apex × 63
trigger × 41
custom-object × 18
soql × 15
bulk-delete × 14
visualforce × 10
managed-package × 10
before-trigger × 9
marketing-cloud × 8
class × 8
permissions × 8
contact × 8
lightning-aura-components × 7
community × 7
batch × 7
visual-workflow × 7
custom-field × 7
dml × 7
record × 7
rest-api × 6
profile × 6
master-detail × 6
account × 5
undelete × 5