delete_image(3)
π
delete_image(3) β Arcan Lua API β¨
okay bestie, welcome to the delete_image page of the Arcan Lua API manual π this one's short but she is mighty β it's giving "clean up your room or the mess becomes a whole personality" π§Ήπ
πΈ NAME πΈ
delete_image β deletes a video object and all the resources attached to it π«Ά like, full send, everything goes.
β¨ SYNOPSIS β¨
nil
delete_image( vid )
returns nil, takes a vid. that's the whole vibe check π
π¦ DESCRIPTION π¦
so this function deletes vid β and not just vid by itself, no ma'am π€ it also takes out any attached frameservers and linked images, without the MASK_LIVING flag cleared. literally the whole friend group goes down with her ππ
π NOTES π
- trying to delete a non-existing image counts as a terminal state transition, bestie π« the
valid_vidfunction can be used as a last resort to figure out whether a number maps to a valid vid or not β but ngl, using it is in many cases a sign of bad design π so likeβ¦ maybe don't β¨ - in a
LWAbuild, deletingWORLDIDis a terminal state object π on other platforms it results in the default rendertarget being dropped. highkey useful for saving memory in some cases where rendering goes strictly through manually defined rendertargets β cute AND efficient, we love her π - if the underlying object is in an asynchronous load state, the load operation will be completed first β³ no cutting in line, no cap π«
π EXAMPLE π
the good, the valid, the iconic β¨
function delete_image0()
valid = fill_surface(32, 32, 255, 0, 0, 0);
delete_image(valid);
end
π MISUSE π
okay queen, this is the "do NOT do this at home" section π these are literally labeled MISUSE in the manual, so likeβ¦ take the hint π«Ά
π© misuse #1 β deleting WORLDID
function delete_image0()
delete_image(WORLDID);
end
π© misuse #2 β no argument at all, bestie??
function delete_image1()
delete_image();
end
π© misuse #3 β BADID energy π
function delete_image2()
delete_image(BADID);
end
π© misuse #4 β negative numbers are not vids, periodt
function delete_image3()
delete_image(-1);
end
π SEE ALSO: π
expire_image(3)β go read that one too, iykyk π
k bye bestie, go delete something (validly) π β¨
this page is from the image manual, dated October 2026, and it's delete_image(3) β mwah, xoxo ππ¦
π¦ where this page comes from
- nixos 26.05: arcan 0.7.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms