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

> Real global Drawing object list를 비웁니다. 추적 중인 각 Drawing object는 destroyed로 표시되고, image resources가 있으면 해제되며, object list가 비워집니다. 정리된 Drawing objects에 대한 기존 Lua references는 남아 있을 수 있지만, 해당 objects는 더 이상 active Drawing objects로 간주되지 않습니다. the Drawing API는 the required rendering environment is active가 true일 때만 이 API를 등록합니다. 이 검사가 false이면 initializer는 이러한 globals를 만들기 전에 반환됩니다.

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

  ## 예제

  Clear every Drawing object currently tracked by Real.

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

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