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
Daniel Sulaiman 9Daniel Sulaiman 9 

Disable "Remove Relationship" button in Salesforce Lightning

I've taken the "Remove Relationship" button out of the page layout that we use for Account Contact Relationships. Unfortunately, this button is still available in the "Related Accounts" and "Related Contacts" list views in Salesforce Lightning.

Is there any way to hide this button on those list views, or prevent them from using it?
Salesforce P1Salesforce P1
Hey Daniel, Please share , if you found any solution for this.
sithamparanadesan pirashanthsithamparanadesan pirashanth
1- go to object manager 
2- click Account 
3 - click page layout and select Account layout.
4-click  related list .it will take you to related list pane and on the contact related list on the top pane click the edit propeties related list 
5 - it will show you a box and it will only show the fields which is going to display in related list view 
6- in this box you cant see the button section.to make it visible minimize your dekstop by using ctrl + - then it will show you the related list button section for the contact .and you can deselect the unwanted buttons on this pane and click save and check your Account related list am sure your button has been romoved.

 if it helpd you make it as best answer,