sfdisk
Verified for current stable LTS
Sfdisk Command: Delete Partition
Use for delete partition with Sfdisk. Exact CLI syntax to delete partition using Sfdisk.
When to use this: Use for delete partition with Sfdisk.
Destructive Command Warning
Destructive operation. Confirm the target path and keep a backup before executing.
Command Syntax
sudo sfdisk --delete </dev/sdX> <partition_number> sudo sfdisk --delete </dev/sdX> <partition_number> Live Command Builder
Final Command
sudo sfdisk --delete </dev/sdX> <partition_number> Command Breakdown
--delete- Command Option
- Tool-specific option used by this command invocation.
FAQ
Purpose: Exact syntax to delete partition using Sfdisk.
Test path: Replace placeholders and run destructive commands in a disposable workspace first.
Flag behavior: Tool version, platform, and shell can change behavior.
Improve This Command
Suggest a correction, safer default, or version-specific note for this entry.
Related Operations
Sfdisk Command: Backup Partition Layout To File
sudo sfdisk -d </dev/sdX> > <path/to/file.dump> Sfdisk Command: Display Help sfdisk -h Sfdisk Command: Restore Partition Layout From File sudo sfdisk < <path/to/file.dump> </dev/sdX> Sfdisk Command: Set Partition Type sudo sfdisk --part-type </dev/sdX> <partition_number> <swap> Czkawka Cli Command: Find And Delete Duplicates czkawka_cli dup -d <path/to/directory> -D <AEN|AEO|ON|OO|HARD|NONE>