delpart

Ask the Linux kernel to forget about a partition. More information: https://manned.org/delpart.

sudo delpart /dev/sda 1