| .. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later |
| NET_REMOVE_IF - Removes a network interface. |
| .. c:macro:: NET_REMOVE_IF |
| ``int ioctl(int fd, NET_REMOVE_IF, int ifnum)`` |
| File descriptor returned by :c:func:`open()`. |
| number of the interface to be removed |
| The NET_REMOVE_IF ioctl deletes an interface previously created via |
| On success 0 is returned, and :c:type:`ca_slot_info` is filled. |
| On error -1 is returned, and the ``errno`` variable is set |
| The generic error codes are described at the |
| :ref:`Generic Error Codes <gen-errors>` chapter. |