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
sfdcdudesfdcdude 

Hide Delete option in notes and attachments

Hi Team,

How can we hide the below options for a user.? Please suggest.
User-added image



Thanks,
Pradeep.p
ANUTEJANUTEJ (Salesforce Developers) 
Hi Pradeep,

>> https://community.bmc.com/s/question/0D53n00007aEPG4CAO/hide-delete-action-from-notes-attachments-section?sfdcIFrameOrigin=null

>> https://salesforce.stackexchange.com/questions/283228/disable-delete-option-in-notes-and-attachment

The above link has threads regarding the same issue that you have mentioned you can try checking these links.

Additionally, there is an open idea that you can try checking below is the link for the same you can upvote so that if it reaches the necessary number of the threshold of votes it may be considered in the future.

>> https://trailblazer.salesforce.com/ideaView?id=08730000000IF4X

Let me know if it helps you and close your query by marking it as the best answer so that it can help others in the future.  

Thanks.
Suraj Tripathi 47Suraj Tripathi 47
Hi Pradeep,
You can not remove the Delete button from the record option in notes and attachments but you can modify all permission from the user. Limit the user, assign some permissions to the user like Read and write in this case. user can't View All/Modify, you can disable the button functionality.


if you have any query please comment.
---------------
If you find your Solution then mark this as the best answer to close this question. 


Thank you!
Regards,
Suraj Tripathi

 
sfdcdudesfdcdude
[image: image.png] I did not enabled the modify all permission. But still user is able to see those 2 options at the Notes and Attachment record. Correct me If I am looking at wrong place.