Device.destroy

Decreases the reference count on device by one. If the result is zero, then device and all associated resources are freed. See Device.reference. This function may acquire devices if the last reference was dropped. Since 1.10

class Device
void
destroy
()