> ## Documentation Index
> Fetch the complete documentation index at: https://docsuncv2.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# cleardrawcache

Clears Seliware's internal drawing cache.

```luau theme={null}
cleardrawcache(): ()
```

The name is misleading. `cleardrawcache` clears an internal cache - it does **not** remove the `Drawing` objects you made with `Drawing.new`. After a call, those objects are still alive: you can still read and write their properties and toggle `Visible`.

To actually remove every drawing your script made, use `Drawing.clear` instead. The two are different functions, not aliases.

## Returns

<code title="the function does not return a value.">void</code>

## Example

<CodeGroup>
  ```luau Example 1 theme={null}
  <<<<<<< HEAD
  cleardrawcache()
  =======
  -- cleardrawcache(): ()
  >>>>>>> 50e30f53759b0538759af25c9b271514aa2c9290
  ```

  ```luau Example 2 theme={null}
  cleardrawcache()
  print("All drawing objects cleared")
  ```
</CodeGroup>

<Tip>
  Useful when recreating the UI or unloading scripts.
</Tip>
