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

> Mengosongkan Real global Drawing object list. Setiap Drawing object yang dilacak ditandai sebagai destroyed, image resources dilepas jika ada, dan object list dikosongkan. Lua references yang sudah ada ke Drawing objects yang dibersihkan masih dapat ada, tetapi objects tidak lagi dianggap active Drawing objects. the Drawing API mendaftarkan API ini hanya saat the required rendering environment is active bernilai true; saat pemeriksaan itu false, initializer kembali sebelum membuat globals ini.

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

  ## Contoh

  Clear every Drawing object currently tracked by Real.

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

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