Skip to main content
New
Stack Overflow Jobs powered by Indeed: A job site that puts thousands of tech jobs at your fingertips (U.S. only). Search jobs

Questions tagged [delete]

The delete DML operation deletes one or more existing sObject records from your organization’s data.

Filter by
Sorted by
Tagged with
3 votes
3 answers
81 views

ApexCRUDViolation: check for object-level delete permission does not work

I am trying to check for object-level delete permission on a custom object before performing a DML delete operation on it. The check is performed as it is shown in documentation here. Here is the ...
Mariia Illarionova's user avatar
0 votes
1 answer
18 views

Error Draft of Knowledge Article wasn't deleted. Try again. happens when user tries to delete a draft article

When One user creates and published an article and then another user is editing this article as a draft (creates a new Draft Version), this user is unable to delete a draft article version created. ...
Patlatus's user avatar
  • 17k
0 votes
1 answer
27 views

Is undeleting a record supposed to set a new id for it?

I'm reading in many places that restored records should be given new ids, however I did some testing through the UI and confirmed that new ids aren't being given. I wrote down the id of an account ...
Cassio's user avatar
  • 3
1 vote
0 answers
32 views

How to prevent users from merging contacts, but allow deleting contacts

Our business users had a specific requirement to allow certain users to retain the ability to delete records while preventing the ability to merge records. In our use case, the business had an ...
Jacob Crandall's user avatar
-1 votes
1 answer
51 views

Why we need to use before delete event instead of after delete in apex trigger

For example: My trigger scenario: when account record is deleted then contact record should also be deleted. My Implementation: when account record is deleted then contact record should also be ...
Sridhar's user avatar
  • 49
0 votes
0 answers
50 views

Single Salesforce Flow for record creation, updation and also deletion

Are there any ways to make a single Salesforce flow work on Create, Update and Delete? I know that Salesforce flow supports deletion separately but developers here might know some tricks to make the ...
Mohd hasim's user avatar
0 votes
1 answer
55 views

Is there a significant difference between deleting a record and deleting data on the record but not the record itself?

From a storage perspective, is there a significant difference between deleting a record vs. deleting data from fields on the record but keeping the data itself? Our org has a lot of Cases and custom ...
d-fws's user avatar
  • 25
1 vote
1 answer
129 views

The elusive 'Delete' button on "Individual Application" (Grantmaking)

We're in the process of implementing Grantmaking. Part of the package includes an "Individual Application" object. This object doesn't have any "Delete" button (we tried ...
Jean-Se's user avatar
  • 55
0 votes
0 answers
79 views

Salesforce LWC form not loading in external site due to browser cookie

We have displayed a Salesforce LWC form in an external site, For a contact the LWC form is not loading when the same contact is trying to reload the site. It works in this way: If the contact is ...
Monica Venkatesan's user avatar
0 votes
0 answers
81 views

Async-safe mass delete of children with Batch

How to write in Apex a mass deletion (over 10 000 records, even up to 150 000) of related records that can be safely called from async context, like Batch? I have two custom objects, lets call them ...
zanstaszek9's user avatar
0 votes
0 answers
78 views

Record-Trigger flow run when Delete error

I'm trying to create a record-trigger flow on Asset delete. I tried getting CV value by formula but the related Account record is not returning correct value. I also tried get Account record ...
 Huy's user avatar
  • 1
1 vote
1 answer
62 views

How to simulate (in test) record being deleted while callout is in progress

Let's say you have this pseudo code for some asynchronous transaction that processes an accountId Account[] accounts = [SELECT Id, Name FROM Account WHERE Id = :accountId]; if (accounts.isEmpty) {...
cropredy's user avatar
  • 71.7k
0 votes
0 answers
139 views

Get a list of all deleted Journey

When I use this endpoint "GET /interaction/v1/interactions?status=Deleted" of Marketing Cloud API (documentation), I am not getting Journeys with status "Deleted" But when I use ...
Tom's user avatar
  • 9
4 votes
1 answer
247 views

How can I prevent a ContentDocument being deleted when it is linked to a record meeting certain criteria?

I have ContentDocuments being used to capture "proof" against certifications. Once the submitted certification (and "proof") has been reviewed, that certification is marked "...
Phil W's user avatar
  • 36.7k
0 votes
0 answers
22 views

Marketing Cloud subscribers massive delete [duplicate]

I am trying to delete all the subscribers from the "All subscribers" list but it only allows me the option to delete by parts or one by one. I thought that I could do an overrite by ...
Penglw9's user avatar
  • 23
-2 votes
1 answer
207 views

Contacts without channel addresses deletion

I have extracted the contacts without channel adresses in Marketing Cloud and while trying to delete them (over 2 million), the deletion couldn't be processed as the maximum contact that could be ...
Lise's user avatar
  • 3
0 votes
1 answer
675 views

Deleting big amount of records from a large sendable data extension

I have a big sendable data extension (hundreds of millions records) in marketing cloud that has multiple primary keys. The DE is live, and new records are being written constantly. I need to delete ...
S.Yumi.W's user avatar
0 votes
2 answers
213 views

Why delete operator doesn't work in LWC?

I have a property in my LWC component. I want to delete the value from it, so it becomes undefined. In usual JS, I can just execute an statement delete this.property It is executed successfully, but ...
Patlatus's user avatar
  • 17k
0 votes
1 answer
199 views

LWC ShowToastEvent fire js function on link click

I have a LWC that shows a table of records with the classic 'actions' arrow. Among the available actions there is 'delete'. Which, when pressed, deletes the record and shows a successful toast. I ...
Teemo_smr's user avatar
  • 142
1 vote
1 answer
1k views

Flow: Stop deleting using delete trigger

I want to add a before delete trigger on a custom object so that no one can delete any record of this object. I know I can do this in Apex by calling addError(), I was wondering if I achieve the same ...
Xin's user avatar
  • 137
-1 votes
1 answer
1k views

Unable to delete record: Value does not exist or does not match filter criteria

I am trying to delete some records but I am stopped by the error message "Value does not exist or does not match filter criteria." I have already disabled all filters all lookup-fields on ...
Corné van Klink's user avatar
0 votes
1 answer
175 views

After delete trigger is not firing< but code in anonymous works properly

I have Active_Contacts__c Decimal field in Account and Active__c checkbox in Contact, also created ContactTrigger and ContactTrigger handler. I have already created logic for after update event and it ...
RandomNickname23's user avatar
0 votes
1 answer
580 views

Can you delete Metadata from the API [closed]

I would like to know if I deployed metadata to a customer's instance via the metadata api, is it possible to create a script to delete said metadata out via the metadata api? I see a couple of posts ...
andrew's user avatar
  • 149
-2 votes
1 answer
118 views

how to customize behavior of the delete operation in salesforce [closed]

I am trying to customize the delete of a record in salesforce, I need that when the user wants to delete a record using the delete button in the CRM, somehow the record is not deleted, but a record ...
Fidel Geronimo's user avatar
1 vote
1 answer
345 views

Change "what to do if lookup record deleted" for a lookup field with Self Relationship?

On the object "A" I do have an existing lookup field to the very same object "A". In the "Lookup Options" on this field the setting "What to do if the lookup record ...
Ivan Sudakov's user avatar
0 votes
1 answer
576 views

How to update all records when before delete trigger is called?

Can anyone help me out? I store all the records of my TestObject__c in a List. My requirement is, if the user delete the record in TestObject__c and if the checkbox is check, one field in all records ...
ratRiot01's user avatar
-1 votes
1 answer
48 views

How far can i optimize the Below Code?

Problem Statement: The apex code should prevent the account from getting deleted if it has associated/Related contact public static void deletechild(Map<Id,account> mapacc){ set <Id&...
Naveen's user avatar
  • 65
0 votes
1 answer
148 views

Salesforce CLI Command to delete Unmanaged Package

We are doing some early spring cleanup and need to uninstall some managed and unmanaged packages. I can use the CLI command below to delete the Managed packages using the Namespace prefix. sfdx force:...
Jeff Callahan's user avatar
0 votes
0 answers
273 views

Bizarre Flow error when deleting records that were queried: ENTITY_IS_DELETED

I have a Platform-Event Triggered Flow which does the following: After insert of a Platform Event record... Get OpportunityLineItem records related to an Opportunity If the result of the above query ...
JustinF's user avatar
  • 485
-1 votes
1 answer
427 views

Using Developer Console Query Editor to delete multiple items

I need some assistance with a message I came across while trying to delete multiple items from SF (less than 3K items). I used the query editor to see the items I need to delete but when I select the ...
Krsna Barquero's user avatar
1 vote
0 answers
35 views

LEX replacement for Delete override that only applies to UI-initiated delete action?

As prep for migrating to LEX, we need to replace our existing Delete overrides for Quote and QuoteLineItem; they check a custom setting and a couple fields and determine if delete should be allowed. ...
Mo Johnson's user avatar
0 votes
1 answer
451 views

Mass Delete Reports Older Than a Specific Date

I'm looking to mass delete reports that haven't run in the last ~20 months. Specifically, anything that hasn't been run since 01/01/2021. So, I've entered the following criteria in Mass Delete for ...
Jay Feton's user avatar
1 vote
0 answers
91 views

Is it possible to change the contact field on all cases from a lookup to a non-linking text field?

We are cleaning up old contacts and running into the issue of being blocked by linked helpdesk cases. We no longer use Salesforce as a helpdesk but would like to keep record of cases in case we need ...
KKulhanek's user avatar
1 vote
0 answers
197 views

Strange ENTITY_IS_DELETED Error from this Method

Strange one...I'm getting ENTITY_IS_DELETED on the line below, but this method is the only thing that deletes these Account_Rule_Association__c records anywhere, and it is set in most cases to only ...
number41's user avatar
  • 948
1 vote
1 answer
139 views

ERROR running force:package:delete: entity type cannot be updated: Package

When I try to execute an sfdx command sfdx force:package:delete -p 0Ho1n000000PAwZCAW I see an error ERROR running force:package:delete: entity type cannot be updated: Package Why do I see this ...
Patlatus's user avatar
  • 17k
0 votes
1 answer
726 views

Using Collection Filter to then be used in Delete Action (flow)

I'm building a Record Triggered - After Save flow. In the flow I have a GET element that is gathering all AccountTeamMember records with a specific Account Id. (getCurrentAccountTeamMembers) ...
ieatallthechips's user avatar
0 votes
1 answer
155 views

Trying to delete Apex with ANT Migration Tool - INVALID_SESSION_ID

I am trying to delete 2 Apex classes and 2 inactive Apex triggers from a production environment using the ANT Migration Tool and I am stone-walled by an INVALID_SESSION_ID error, but I suspect there's ...
d-fws's user avatar
  • 25
1 vote
1 answer
546 views

Queries on Large Object (>1 million rows) Fail to Execute

We have an object with approximately 1.5 million records in Salesforce. These records are created in an external system and synced with Salesforce every 24 hours. On a 24 hour basis, we delete all 1.5 ...
Isaac L's user avatar
  • 174
0 votes
3 answers
6k views

Delete Mass records

I want to delete 10 million records from the custom object. How to delete all records without batch class and within minimum time.
Shekhar Dethe's user avatar
1 vote
2 answers
2k views

How to mass delete only one particular field value (for all records)?

I have a custom object, one of the field in it is email, all the values saved in this email field got corrupted. Not all the records are having email value. Irrespective of that, I have to clear/...
ramesh's user avatar
  • 29
0 votes
1 answer
436 views

Delete Case button access removed while keeping Delete Case access on object for merge purpose

I have a requirement to remove the access for specific users, on the Delete case List View button. These users should still have Delete access on the Case object, in order to be able to merge cases. ...
blanco17's user avatar
0 votes
1 answer
266 views

Delete every sObject record assigned to a user without specifying sObject

As far as I know this is not possible but, is there a way we can delete all records related to a User (without specifying its sObject) from Apex?
molinet's user avatar
  • 925
2 votes
1 answer
745 views

Delete ContactKey associated to device Id Mobile Push when contactkey is not the contackey that I want to use

I have a mobile app with an android SDK to be able to send push notifications from the Marketing Cloud. Each user who installs and registers in the app must receive a specific ContactKey determined by ...
PviP's user avatar
  • 23
0 votes
0 answers
32 views

Salesforce fields recover options

New here, thanks for your help. I have salesforce cloud enterprise. We had a third party trying to setup their software for scheduling and it was done in the live environment not our sandbox. Issue is ...
Believenw's user avatar
0 votes
1 answer
394 views

SFDMU - Deleting 30 Millions records

I deleted 30M records with SFDMU. The only issue I faced was that I have to update the Json file for every 900,000 records and re-trigger the job using sfdx sfdmu:run --targetusername Production. By ...
Sandra Zuluaga's user avatar
0 votes
0 answers
327 views

Contact delete in Marketing cloud- Which account id we have to use if we have multiple business units in payload

Need a clarification in contact delete by lust reference. We have a parent BU (business unit) at the top of the tree, and one of the other BUs is TEST. In TEST we have created an Installed Package ...
DSK's user avatar
  • 1
0 votes
1 answer
3k views

Delete records of other users with OWD as Public Read/Write

I have a custom object "Position" and the OWD setting is set as Public Read/Write. On the Custom profile I have given Read, Create, Edit & Delete permission to the Position Object When I ...
Santosh's user avatar
  • 103
0 votes
1 answer
157 views

Delete a file from a related list by non-owner

I have a record with a file in a related list. I want to allow a non-owner to delete that file. Since you can't add a custom button to that list and non-owners can't delete a file how can this be ...
Jason Pate's user avatar
0 votes
1 answer
766 views

How do I correctly implement the 'isDelete' method?

This is the code I am trying to use. I will also add that in the parameters of the trigger, I have added the 'before delete' and 'after delete' at the top of the trigger. And I am getting the ...
BigTree's user avatar
2 votes
1 answer
352 views

How to clean Product Item Transaction from Storage

We are currently having almost 6 GB space occupied by Product Item Transaction object. We want to Delete All Product Item Transaction records except for current and last Year. The object is not ...
SFDCDJ's user avatar
  • 1,864

1
2 3 4 5 6