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
MaheshReddyMaheshReddy 

How can delete multiple child objects records before parent record delete

Example:
 Case  --  Parent
  A -- - child
  B --- -  child
  C  ---  child

  when i deleting Case  records ,i needs to delete A ,B and C records associate parent Records.
Using apex?

Urgent------------
 
TruptiTrupti
What is the relationship between Case and child? If it is master-detail then you do not need to worry.
but if it is lookup then you can write trigger on Case (After Delete) Object.

Thanks
 
MaheshReddyMaheshReddy
Its lookup relationship