---
name: "device_delete_child"
section: "9"
platform: "linux"
package: "freebsd-manpages"
version: "6.0-5"
release: "Debian 4.0 (Etch)"
platforms: ["linux", "freebsd"]
url: "https://new.carta.tech/device_delete_child"
---

# device\_delete\_child(9)

delete a child from a device

## NAME

**device\_delete\_child** – delete a child from a device

## SYNOPSIS

**#include \<sys/param.h\>**

**#include \<sys/bus.h\>**

*int*\

**device\_delete\_child**(*device\_t dev*, *device\_t child*);

## DESCRIPTION

The specified device is removed from *dev* and deleted. If the device is currently attached, it is first detached (see [DEVICE\_ATTACH(9)](/DEVICE_ATTACH/9.md) and [DEVICE\_DETACH(9)](/DEVICE_DETACH/9.md)).

## RETURN VALUES

Zero is returned on success, otherwise an error is returned.

## SEE ALSO

[device\_add\_child(9)](/device_add_child/9.md)

## AUTHORS

This manual page was written by Doug Rabson.
