<!--
{
  "availability" : [
    "DriverKit: -"
  ],
  "documentType" : "symbol",
  "framework" : "SCSIControllerDriverKit",
  "identifier" : "/documentation/SCSIControllerDriverKit/IOUserSCSIParallelInterfaceController/UserDestroyTargetForID",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "SCSIControllerDriverKit"
    ],
    "preciseIdentifier" : "c:@S@IOUserSCSIParallelInterfaceController@F@UserDestroyTargetForID#k#"
  },
  "title" : "UserDestroyTargetForID"
}
-->

# UserDestroyTargetForID

Destroys the specified target.

```
virtual kern_return_t UserDestroyTargetForID(SCSITargetIdentifier targetID);
```

## Parameters

`targetID`

The ID of the target to destroy.

## Return Value

A value that indicates the result of target removal. <doc://com.apple.documentation/documentation/DriverKit/kIOReturnSuccess> indicates success. For error definitions, see <doc://com.apple.documentation/documentation/iokit/iokit_constants>.

## Discussion

Your driver extension calls this method to remove the target with the specified `targetID`.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)