code: public final void deleteDevice(DeviceName name) {
  
      DeleteDeviceRequest request =
          DeleteDeviceRequest.newBuilder().setName(name == null ? null : name.toString()).build();
      deleteDevice(request);
    }
docs: Deletes a device.
  
  <p>Sample code:
  
  <pre><code>
  try (DeviceManagerClient deviceManagerClient = DeviceManagerClient.create()) {
  DeviceName name = DeviceName.of("[PROJECT]", "[LOCATION]", "[REGISTRY]", "[DEVICE]");
  deviceManagerClient.deleteDevice(name);
  }
  </code></pre>
  
  @param name The name of the device. For example,
  `projects/p0/locations/us-central1/registries/registry0/devices/device0` or
  `projects/p0/locations/us-central1/registries/registry0/devices/{num_id}`.
  @throws com.google.api.gax.rpc.ApiException if the remote call fails