--- title: "clear map()" slug: "basic-clear-map" updated: 2026-08-11T07:12:32Z published: 2026-08-11T07:12:32Z canonical: "docs.lobstersoftware.com/basic-clear-map" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.lobstersoftware.com/llms.txt > Use this file to discover all available pages before exploring further. # clear map() Clears map **a**. The result of the function is the number of elements that have been deleted. ## Parameters | Parameter | Description | | --- | --- | | a | (optional) Name of map. Default: "default". | ## Examples Assume the are two maps "default" with 10 elements and "my_map" with 15 elements. | Parameter a | Result | | --- | --- | | my_other_map | 0 | | | 10 | | | 0 | | my_map | 15 | | my_map | 0 |