Questions tagged [bulk-delete]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
11
votes
2answers
5k views

Mass Delete Picklist values

I'm trying to find an automated way to mass delete picklist values. I had a look at the following ways to accomplish this but without success: Force.com IDE: Deleting the picklist values in the ...
8
votes
1answer
5k views

How to delete 10K records in Salesforce via Apex?

This question might be more towards the approach than the technical side. The scenario is the following: I have to run a scheduler to delete some records. The record size is always going to be less ...
8
votes
2answers
4k views

Delete Operation Too Large - but all related records have been deleted

I had more that 1,00,000 child objects records for a single record of parent Object. After deleting the child object records when I am deleting the parent record I am getting the below error:- Using ...
7
votes
2answers
2k views

What is best way to delete all records from any Dev org

We have managed package and to test this we have special Dev & QA org from sales force which higher data limits (one of them is 250 mb org). To test various scenarios we need to create may ...
7
votes
1answer
107 views

Bulk Delete operation in trigger does not split the data in chunks of 200

As far I know, while processing bulk operations in Trigger, the data is split in chunks of 200 per batch. I have around 40K accounts in org and I wanted to delete around 1000 of them. To understand ...
6
votes
3answers
3k views

Mass Delete Tens Of Millions Of Records

I have done my due diligence on this and simply cannot find an answer that does not involve Apex, which is what I'm trying to avoid for various reasons. Does anyone know how to adequately without a ...
5
votes
2answers
9k views

Truncate or delete all records in a custom object

Using SOQL, how do I truncate an object or delete all rows. For example DELETE (Select id FROM MyObject__c) and delete [select Id FROM MyObject__c] and TRUNCATE TABLE MyObject__c All 3 example ...
4
votes
1answer
333 views

Delete all Case Comments

How can I delete all case comments that are in application in a quick way? Is there even a quick way?
4
votes
5answers
808 views

Deleting Records in Bulk in Group Edition

It is possible to delete records in bulk on Group Edition? 1) APIs are not enabled 2) We can not write apex class on Group Edition 3) System logs not allowing to execute any script 4) Data loader ...
4
votes
1answer
3k views

Mass Delete Custom Object Records Using External Id?

Is there any tool that allows you to mass-delete custom object records using only the External Id on that object record rather than the Salesforce record Id?
4
votes
1answer
5k views

Truncate (mass-delete) button not showing on all objects

I am getting the truncate button on some custom objects only. Is there any criteria for not having a truncate button on certain custom objects? Like, does having triggers/workflows on a custom object ...
3
votes
1answer
2k views

Mass deletion of records through apex

Aim- I want to delete any record within custom object training__c where the created date is greater than 6 months from today's date. I would like to run this job daily. I apologise if the following ...
3
votes
1answer
522 views

I need to delete 7 million records but Data Loader keeps getting stuck

We found that 7 million Task records were created in our org and we need to delete them. We were recommended to delete all tasks, but there are many we want to preserve. We were able to create a CSV ...
2
votes
2answers
1k views

delete multiple objects which are inside array in Apex

Very new to Apex and never touched java, basically what I am trying to do is delete all records then insert records inside multiple custom objects. Bellow is my code for just the deleting part but I ...
2
votes
1answer
364 views

Why is the mass delete of reports function not removing reports?

Per the Summer 14 release instructions I've found in Stack Exchange I am trying to delete a large quantity of reports using the mass delete function. I open setup then 'Data management" then 'mass ...
2
votes
1answer
5k views

How can I bulk delete Prospects in Pardot?

On the Salesforce end of things we've implemented some logic to prevent certain contacts ever syncing to Pardot and in test it seems to work as planned, but we still have 924 prospects in Pardot that ...
2
votes
1answer
99 views

Backup and remove old ActivityHistory entries?

Ok, we are sort of running out of space on one instance, and we noticed that EmailMessage-s and their accompanying Tasks take about 60% of our instance (we use a lot of Email2Case here). So the idea ...
2
votes
3answers
538 views

How to automate finding and deleting a person's data in Marketing Cloud?

I would to know what ways are available to find all instances of a person's data and delete it in Marketing Cloud (ExactTarget). I have a list of People that we need to delete out of Marketing Cloud. ...
2
votes
0answers
186 views

Is there a way to delete >1 Million records from a custom Big Object?

First thing that came to my mind was writing a Batch Apex to do this but I get this error. System.UnexpectedException: The requested operation is not supported by this SObject Deleting via Bulk API ...
2
votes
1answer
72 views

Bulk delete records from post uninstall script

I'm writing a post-uninstall script for a managed package that will delete a set of records that are no longer used. This works fine at the moment but I want to make it capable of deleting very large ...
2
votes
1answer
69 views

Scheduling mass delete of pdf Attachments from Account using Data Loader ClI

I was able to upload pdf attachments to account object using Data Loader CLI. I want to delete these attachments daily and upload newest pdf files. Can somebody please suggest how can I schedule mass ...
1
vote
1answer
3k views

Anyway to mass delete Custom Metadata Type records?

I currently have 100+ records I need to delete under my custom metadata type, and I am not keen on having to do it one by one (I will need to reset the records every now and then as our requirements ...
1
vote
1answer
128 views

Deleting Cases from org

I want to delete thousands of cases in my org preferably 25k at a time. I have written a batch class for this. However during testing i found that its taking 30 minutes to delete 500 cases through ...
1
vote
2answers
1k views

Mass Deletion Of (most) Records (in Sandbox) (100 million+)

If someone has a better way of doing this, feel free to share. I'm not playing the role of developer any longer. However, we have an Object with over 100mil records in it, which is over our limit, ...
1
vote
1answer
60 views

Returning PRODUCTION Org to Virgin Status Without DEVELOPER Tools [duplicate]

I have a scenario: Previous consultants and users had initially done some work inside our Production org (we have NEVER DEPLOYED to Production - they simply started to do the setup of this company's ...
1
vote
2answers
236 views

(Creative) Ways To Truncate A Managed-Package Object

I've searched through various questions here, and via Google, and see nothing other than Apex possibilities, which are far too slow. Anyone know of a creative way to TRUNCATE the data in a custom ...
1
vote
2answers
603 views

Anyway to Delete Mass reports in SF which sit in different folders?

i think my title gives you the problem. I want to mass delete reports i belive you can do this via Eclipse IDE Plug-In, however i dont want to go down this route, is it possible to do it by using the ...
1
vote
1answer
4k views

Deleting all child records of an object without knowing child record ID with the API

I have two objects with a master-detail relation ship. Invoice and Invoice Lines. I am basically syncing this up from an external program into Salesforce. During updates, a lot of changes may be ...
1
vote
1answer
42 views

Trigger truncate of an object

Is it possible to trigger a truncate of an object in Salesforce? As a job etc.? Deleting the data from an object needs the Ids to be cached/stored and then deleted from the Salesforce. Even using "...
1
vote
1answer
266 views

Should the undelete via Apex behave the same way as Recycle bin undelete

Does the undelete via Apex behave the same way as Recycle bin undelete?
1
vote
1answer
22 views

How to find easily the correct order of object for records deletion?

I have around 47 objects and need to delete records from these objects but these objects are related by master-detail and lookup relations. I have to go through relation of each of these objects to ...
1
vote
4answers
535 views

How can I mass delete records from custom objects?

I would preferably like to use a point-and-click approach or an appexchange app which helps me accomplish that? Also, if there is an app for recursive delete of data, that would be fantastic.
1
vote
1answer
452 views

Delete Open tasks of Inactive users

I need to bulk delete open tasks that are assigned to Inactive users. I need to exempt a particular profile(sales profile) from this. Can you guys suggest me the best way to delete the open tasks for ...
1
vote
1answer
29 views

Create multiple delete functionality for all the attachments related to a particular case

I have created a button on case detail page called "delete attachments" once pressing that, the page directs to below VF page where all related attachments to that particular case are displayed with ...
1
vote
1answer
203 views

Delete all contacts in Marketing Cloud to delete all duplicates

We have duplicates in our all contacts in Marketing Cloud. To solve this, we want to delete all contacts (audience builder). We use the Marketing Cloud connector, and send emails to synchronized ...
1
vote
1answer
75 views

When Managed Package Deletes Records via Bulk Data Load Job, Before/After Delete Apex Doesn't Run

Background: We have a Managed Package that syncs data with our system via Bulk Data Loads. Occasionally, based on a change in Salesforce, record(s) are sent to the external system and then ...
1
vote
0answers
30 views

API return answer is 'queued'. What does this mean?

We are using the API delete contacts. However we cannot se that the delete contacts call have had any impact, actually none. Our return answer for every call is 'queued' but what does this mean? How ...
1
vote
0answers
93 views

Malform query when try to delete bulk records

I want to delete bulk records from a custom object. i am reffering below url: https://developer.salesforce.com/docs/atlas.en-us.api_asynch.meta/api_asynch/asynch_api_code_curl_walkthrough.htm and my ...
1
vote
1answer
1k views

Delete Reports : One or more dashboards depend on this report [closed]

First I have deleted dashboards using Force.com migration tool. I made sure there are no records in Recycle Bin. Later when I am trying to delete reports it's complaining One or more dashboards ...
0
votes
3answers
4k views

Remove users from All contacts in marketing cloud

I'm in the process of setting up our Marketing Cloud service and I've ended up with a number of users in All Contacts without the correct subscriber key (email as subscriber key instead of a user_id ...
0
votes
1answer
216 views

Estimated time to Delete multiple Contacts via Data Extension

Those that have used the Contact Deletion (https://help.salesforce.com/articleView?id=mc_cab_contact_deletion.htm&type=5) process for bulk deletes...is there any metrics on time to complete ...
0
votes
1answer
185 views

DELETE Dependencies REST API DELETE_FAILED

When attempting to use REST API to delete multiple object records like so: h t t p s://org.my.salesforce.com/services/data/v42.0/composite/sobjects?ids=0010x000000000,a1r0x000000001,a1m0x000000002,...
0
votes
1answer
36 views

Delete contacts based on an “expiring” field on their record

I have a bunch of contacts whose details have been licensed from other companies. The only caveat to being able to treat them as normal contacts in our Salesforce database is that they must be deleted ...
0
votes
1answer
27 views

Mass delete Accounts where related contacts have direct association with other Accounts

My issue is two fold - I want to delete 350 Accounts. However these are the two blockers I have - Your attempt to delete 'account record' could not be completed because it is associated with the ...
0
votes
0answers
31 views

What are the considerations when deleting the All Subscribers list and only adding contacts when emailing them?

I'm in the process of cleaning up our MC database to save on costs and improve efficiencies. My question: Considering our setup below, what would the downsides be if we were to delete our All ...
0
votes
1answer
40 views

Looking to delete old emails but keep cases & activities

I need to have a rule to cleanse old email messages, but keep the case & activity records. It seems this is possible to do manually (find the case, click into the task, click into the related ...
0
votes
1answer
292 views

Case bulk delete error

I am trying to bulk delete cases where for some case I am getting this error "UNKNOWN_EXCEPTION:An unknown exception has occurred.:--" I checked for all dependancies and found only CaseHistory ...
0
votes
1answer
143 views

Mass Delete Documents In Content Libary

I've been asked to delete 80 outdated documents from our content libary is there an easy way to do this?