The (*sync.Map) Clear() method deletes all the entries, resulting in an empty map (#61696). It is analogous to clear.
(*sync.Map) Clear()
clear