DELPART(8)

๐Ÿ’… DELPART(8) โ€” System Administration

okay bestie, buckle up, because this one is short and iconic โœจ

๐ŸŒธ NAME ๐ŸŒธ

delpart โ€” tell the kernel to forget about a partition ๐Ÿง ๐Ÿ’จ


๐Ÿฆ‹ SYNOPSIS ๐Ÿฆ‹

delpart device partition

โœจ DESCRIPTION โœจ

so basically, delpart asks the Linux kernel to forget about the specified partition (which is a number, bestie, just a number) on the specified device. that's it. that's the whole job. ๐Ÿซถ

the way this works is that the command is just a simple wrapper around the "del partition" ioctl. no cap. it's giving middle-manager energy but make it syscall. ๐Ÿ’…

โš ๏ธ ok this part matters: this command doesn't manipulate partitions on a block device. like, it's not out here editing partition tables and rearranging your whole setup. it just tells the kernel to pretend that partition was never there. the disk itself? untouched. periodt. ๐Ÿ’€

๐ŸŽ€ OPTIONS ๐ŸŽ€

  • -h, --help โ€” display help text and exit. your girl is helpful and then she leaves. ๐Ÿ‘‘
  • -V, --version โ€” display version and exit. iconic reveal, then dip. โœจ

๐ŸŒˆ SEE ALSO ๐ŸŒˆ

addpart(8), fdisk(8), parted(8), partprobe(8), partx(8)

(yes bestie, addpart(8) is literally the opposite of this one, they're sisters ๐Ÿฅฐ)


๐Ÿ› REPORTING BUGS ๐Ÿ›

found a bug? for bug reports, use the issue tracker at <https://github.com/util-linux/util-linux/issues> โ€” go tell them, they wanna know, fr fr ๐Ÿ™ˆ


โญ AVAILABILITY โญ

the delpart command is part of the util-linux package, which you can download from the Linux Kernel Archive at <https://www.kernel.org/pub/linux/utils/util-linux/> ๐Ÿฆ‹


and that's the whole page, bestie, you ate it ๐Ÿ’– this little cutie is util-linux 2.42.4, dated 2026-09-21, and it's out here doing the most while doing the least. slay, DELPART(8), slay ๐ŸŒธโœจ

๐Ÿ“ฆ where this page comes from
  • arch rolling: util-linux 2.42.4-1 ยท BSD-2-Clause AND BSD-3-Clause AND BSD-4-Clause-UC AND GPL-2.0-only AND GPL-2.0-or-later AND GPL-3.0-or-later AND ISC AND LGPL-2.1-or-later AND LicenseRef-PublicDomain
  • ๐Ÿ’– girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms