+ Start a Discussion
Radhi MehtaRadhi Mehta 

how to delete custom object ? i cannot find the delete option...

Varun SinghVarun Singh
Hi Radhi

If there  is No Realtion with another object then fallow these steps

https://help.salesforce.com/articleView?id=dev_deleting_custom_objects.htm&type=0

If custom object have relation with another object 

When attempting to delete a custom object record, an error message may appear that references a relationship to another object, which is currently preventing the deletion.  Within the error, a table is displayed that provides a list of the related records that are causing the problem.

Example Error Message:

"Your attempt to delete [record name] could not be completed because it is associated with the following [object name]. If the following table is empty, it's because you don't have access to the records restricting the delete."

In some situations, the table appears empty even when there are no permissions/access issues. 

Resolution

Check the referenced Object for a custom Lookup field that relates back to the record that needs deletion.  Once found, follow these steps:

- Click on the field to see its details.
- Under the "Lookup Options" section, check the value for "What to do if the lookup record is deleted?"
- If the value is set to "Don't allow deletion of the lookup record that's part of a lookup relationship.", this will need to be changed to "Clear the value of this field."

Once this change has been saved, it should be possible to delete the affected record.

I hope it is helpful for you
Radhi MehtaRadhi Mehta
Hi Varun,

Thank you so much for your time and resolution.
I have started with salesforce from yesterday and i am completely new to the setup page of it and hence couldnt work on the solution you gave me.

https://ap5.lightning.force.com/one/one.app#/setup/home?a:t=1499772455816

The above link will show you custom object definition for object Offer which i want to remove it.

Can you please help me with the same

Thank you in advance.

​Radhi
Varun SinghVarun Singh
Yes sure 
But I have to access your account for tha
So Connect me  On skype id- spnvarun0121  or  mail me at spnvarun0121@gmail.com
Akshay_DhimanAkshay_Dhiman
Hi Radhi,

NOTE: If you are using Lightning Experience then follow these Steps:

Step 1: Go to “Setup

User-added image

Step 2: Select “Object Manager” under Object in Quick Find Box
Step 3: Click on “Schema Builder” from upper right corner
Step 4: Select from “Custom Objects” and Select your object which you want to Delete
Step 5: Click on Setting of selected object as shown in below figure:

User-added image

Step 6: Click on “Delete Object” from list and Select “Yes
Step 7: Click on “Delete
Finally, Your Custom Object will be Deleted.

*************************************************************************************************
NOTE: If you are using Salesforce Classic then follow these Steps:

Step 1: Open your Salesforce Org and Click on Setup from upper right corner
Step 2: Write "Object" in Quick find/ Search Box
Step 3: Click on "Objects" under  "Create" 
------> You will get Actons
  • Edit  
  • Del
Step 4: Click on ‘Del’ in front of Custom Object which you want to Delete as:

User-added image
-----> A New Window will open
Step 5: Select "Yes" in New Window and Click on Delete (Button) as:

User-added image


-------> You will get “Deleted Objects (1)
Step 6: Click on “Deleted Objects (1)” 
Step 7: Click on "Erase"
-----> A New Window will open
Step 8: Select "Yes" in New Window and Click on Delete (Button)

User-added image

I hope it will help you!!

Regards,
Akshay
Debra UDebra U
@Akshay-Dhiman - thanks so much for this step by step instruction.   It helped immenseley!

Deb