Once, I needed to get rid of WiFi board I was to lazy to physically remove.
One can remove a PCI device by adding a udev rule under /etc/udev/rules.d
:
ACTION=="add", KERNEL=="0000:00:03.0", SUBSYSTEM=="pci", RUN+="/bin/sh -c 'echo 1 > /sys/bus/pci/devices/0000:00:03.0/remove'"
Replace 0000:00:03.0
(twice) with the pci device address you want to remove.
One could check device address with lspci
.