--- title: "clear list()" slug: "basic-clear-list" updated: 2025-09-17T20:20:57Z published: 2025-09-22T09:16:08Z canonical: "docs.lobstersoftware.com/basic-clear-list" --- > ## 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 list() Clears list **a**. The result of the function is the number of elements that have been deleted from the list. ## Parameters | Parameter | Description | | --- | --- | | a | (optional) Name of the list to be cleared. Default: "default". | ## Examples Assume there are two lists "default" with 10 elements and "mylist" with 15 elements. | Parameter a | Result | | --- | --- | | myotherlist | 0 | | | 10 | | | 0 | | mylist | 15 | | mylist | 0 |