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

# cleardrawcache

> Limpa a Real global Drawing object list. Cada Drawing object rastreado e marcado como destroyed, image resources sao liberados quando existem, e a object list e esvaziada. Lua references existentes para Drawing objects limpos ainda podem existir, mas os objects nao sao mais considerados active Drawing objects. the Drawing API registra esta API somente quando the required rendering environment is active e true; quando essa verificacao e false, o initializer retorna antes de criar estes globals.

<div className="real-function-page">
  ```lua theme={null}
  cleardrawcache()
  ```

  ## Exemplo

  Clear every Drawing object currently tracked by Real.

  ```lua theme={null}
  local square = Drawing.new("Square")
  square.Visible = true

  cleardrawcache()
  print(square.Visible)
  ```
</div>
