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
Mohita KalraMohita Kalra 

Hi , Can anyone please let me know if I can restrict a profile from deleting a field on an object. I searched but no luck.

Basically , I dont want a profile to be able to delete a field when it goes to an object from set up , fields and relationships. There we have two options one is edit and other is delete. I dont want the profile to have delete option. Is it possible to restrict at that level ?
Best Answer chosen by Mohita Kalra
VinayVinay (Salesforce Developers) 
Hi Mohita,

Thanks,  I tried to check on object-level and  'del' option cannot be removed.

https://success.salesforce.com/ideaView?id=08730000000BrqR

As a workaround, you can check 'Customize Application'  option on profile.  But that will hide Edit, Del option.

Thanks,
Vinay Kumar

All Answers

VinayVinay (Salesforce Developers) 
Hi Mohita,

Try to remove Edit and delete permission from user profile for that object.

Review below Idea link.
(Enable Action Links (Edit & Del) to be hidden on ListViews and Related Lists)
https://success.salesforce.com/ideaView?id=08730000000ksRdAAI

Reference: 
https://success.salesforce.com/answers?id=9063A000000DbWtQAK

Hope above information was helpful.

Please mark as Best Answer so that it can help others in the future.

Thanks,
Vinay Kumar
Mohita KalraMohita Kalra
@Vinay : Actually I need to restrict from fields and relationships menu inside object. From here in dropdown we have edit and delete. Can I restrict at that level. The solution you have mentioned restricts from record level not from set up level.
User-added image
VinayVinay (Salesforce Developers) 
Hi Mohita,

Thanks,  I tried to check on object-level and  'del' option cannot be removed.

https://success.salesforce.com/ideaView?id=08730000000BrqR

As a workaround, you can check 'Customize Application'  option on profile.  But that will hide Edit, Del option.

Thanks,
Vinay Kumar
This was selected as the best answer