delete_image(3)

πŸ“¦
version 0.7.1 Β· 2 versions
, in nixos 26.05

πŸ’… 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 πŸŽ€

  1. trying to delete a non-existing image counts as a terminal state transition, bestie 🫠 the valid_vid function 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 ✨
  2. in a LWA build, deleting WORLDID is 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 πŸ’–
  3. 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: πŸ‘€


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