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
Felipe FernandesFelipe Fernandes 

Delete objects

Hi,

I have to lock objects making them not deletable (except by administrador)
how can i do that?

someone can help me whith this?

Thanks!

Best Answer chosen by Admin (Salesforce Developers) 
Steve :-/Steve :-/

Remove delete in the Object Permission settings on the User Profile

All Answers

Steve :-/Steve :-/

Remove delete in the Object Permission settings on the User Profile

This was selected as the best answer
SunilSunil

Hi,

 

I am not sure if you want to prevent your users from deleting custom objects or records...

 

So if you want to prevent users from deleting records, go the way   suggested.

 

But if you want to prevent users from deleting custom objects then you need to remove 'View Setup and Configuration' permission which is under Administrative Permissions on the user profile.

 

Thanks.