cleardrawcache
Remove all active Drawing objects created with Drawing.new at once.
function cleardrawcache(): ()Synopsis
How it works
Destroys all active
Drawing objects and frees their associated render resources. The executor maintains an internal drawing cache of all objects created with Drawing.new(). This function iterates the cache and calls :Remove() on each object, then clears the cache table. After calling this, all previously created drawing objects are invalid — accessing their properties will throw.Render pipeline
Drawing objects are rendered in a post-present hook that runs after Roblox's own rendering pass. Each drawing object maps to vertex/index buffers in the overlay. Clearing the cache releases these GPU resources and stops the overlay draw calls.
Usage
Create drawings then clear all at once
local circle = Drawing.new("Circle")
circle.Radius = 50
circle.Visible = true
local label = Drawing.new("Text")
label.Text = "ESP"
label.Visible = true
task.wait(3)
cleardrawcache() "cc">-- removes both objects instantlyBulk cleanup shortcut
Prefer cleardrawcache when you want to wipe the entire overlay — faster than iterating a table of Drawing references.