On this pageclear (Function)Function returns the cleared map.Syntax<OBJECT> map:clear(<OBJECT> map)Query ParametersNameDescriptionDefault ValuePossible Data TypesOptionalDynamicmapThe map which needs to be clearedOBJECTNoYesExample 1map:clear(stockDetails)Returns an empty map.