---
name: "device_destroy"
section: "9"
platform: "linux"
package: "linux-manual-3.16"
version: "3.16.56-1+deb8u1"
release: "Debian 8 (Jessie)"
platforms: ["linux"]
url: "https://new.carta.tech/device_destroy"
---

# device\_destroy(9)

removes a device that was created with device\_create

## NAME

device\_destroy - removes a device that was created with **device\_create**

## SYNOPSIS

**void device\_destroy(struct class \*** *class***, dev\_t** *devt***);**

## ARGUMENTS

*class*

pointer to the struct class that this device was registered with

*devt*

the dev\_t of the device that was previously registered

## DESCRIPTION

This call unregisters and cleans up a device that was created with a call to **device\_create**.

## COPYRIGHT
