Activity › Forums › Salesforce® Discussions › What is the use of remove(key) in map in Salesforce? Salesforce® Discussions What is the use of remove(key) in map in Salesforce? Posted by Pooja on February 21, 2020 at 2:33 PM What is the use of remove(key) in map in Salesforce? Deepak replied 6 years, 3 months ago 2 Members · 1 Reply 1 Reply Deepak Member February 21, 2020 at 2:56 PM Hi Pooja, remove(key) – This method removes the mapping for the specified key from the map, if present, and returns the corresponding value Log In to reply. Public All Members My Connections Only Me PublicAll MembersMy ConnectionsOnly Me Public All Members My Connections Only Me