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

> Leert Real global Drawing object list. Jedes verfolgte Drawing object wird als destroyed markiert, image resources werden freigegeben, wenn vorhanden, und die object list wird geleert. Bestehende Lua references auf gelöschte Drawing objects können weiterhin existieren, aber die objects gelten nicht mehr als active Drawing objects. the Drawing API registriert diese API nur, wenn the required rendering environment is active true ist; wenn diese Prüfung false ist, kehrt der initializer zurück, bevor diese globals erstellt werden.

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

  ## Beispiel

  Clear every Drawing object currently tracked by Real.

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

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