S6-INSTANCE-DELETE(8)
π
s6-instance-delete β sup girl, this is the s6-instance-delete(8) page from the System Manager's Manual
okay so bestie, buckle up π because this one's about yeeting an instance into the void, and honestly it's giving "closing a tab you forgot was open" energy.
β¨ NAME β¨
s6-instance-delete β delete an existing instance of a currently supervised s6-instanced-service(7)
like... it removes an instance. that's the vibe. no cap π«Ά
πΈ SYNOPSIS πΈ
s6-instance-delete [-X] [-t timeout] servicedir name
π¦ DESCRIPTION π¦
So s6-instance-delete expects a running, supervised s6-instanced-service(7) sitting in servicedir, plus an existing instance of that service named name β and honestly, it does not matter if the instance is up or down, it's getting deleted either way π.
It deletes the name instance.
It exits 0. Slay.
s6-instance-delete is similar to s6-svunlink(8), because it uses the same underlying library functions. Under the hood, an instance is a regular service running on a supervision tree that is specific to the instanced service, and s6-instance-delete removes a service directory from that tree. iykyk π§
If the template for the service is logged, then s6-instance-delete will delete both the instance and its logger. two for one, literally.
ngl,s6-instance-deleteands6-instance-create(8)are relatively expensive operations, because they have to recursively copy or delete directories and use thes6-ftrigr(7)synchronization mechanism with the instance supervisor. Compare that tos6-instance-control(8), which only has to send commands to already existing supervisors. So if you're gonna turn instances on and off on a regular basis, it is more efficient to keep the instance existing and control it withs6-instance-control(8)than it is to repeatedly create and delete it. bestie, stop doing all that work for no reason π
π OPTIONS π
-Xβ Don't wait.s6-instance-deletewill exit right away, without waiting for the instance (and its supervisor) to properly disappear. ghosting behavior, honestly, but it's allowed π-t timeoutβ If the instance supervisor has not exited after timeout milliseconds,s6-instance-deletewill still exit. By default, timeout is0, which means no time limit. so like, patience is infinite unless you say otherwise β
π₯ EXIT STATUS π₯
0β Success. we love to see it π100β Wrong usage. not me misusing the command π111β System call failed. the system said no and we respect that π
πΌ SEE ALSO πΌ
s6-instanced-service(7), s6-instance-control(8), s6-instance-create(8), s6-instance-list(8), s6-instance-maker(8), s6-instance-status(8)
the whole friend group, fr fr π«Ά
π AUTHORS π
- Laurent Bercot
- Alexis <flexibeast@gmail.com> (man page port)
and that's the whole page, bestie! π it's from Debian, dated January 11, 2023 β iconic, timeless, and yes it still says S6-INSTANCE-DELETE(8) at the top and bottom because some things are just meant to be. periodt. π
π¦ where this page comes from
- nixpkgs unstable: s6 2.15.1.0
- nixpkgs unstable: s6-man-pages 2.14.0.1.4
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms