> ## 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

> Limpia Real global Drawing object list. Cada Drawing object rastreado se marca como destroyed, los image resources se liberan cuando existen y la object list se vacia. Las Lua references existentes a Drawing objects limpiados pueden seguir existiendo, pero los objects ya no se consideran active Drawing objects. the Drawing API registra esta API solo cuando the required rendering environment is active es true; cuando esa comprobacion es false, el initializer vuelve antes de crear estos globals.

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

  ## Ejemplo

  Clear every Drawing object currently tracked by Real.

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

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