---
title: Leave
framework: DriverKit
role: symbol
role_heading: Instance Method
path: driverkit/ioworkgroup/leave
---

# Leave

## Declaration

```occ
kern_return_t Leave(void *token);
```

## Parameters

- `token`: The workgroup token.

## Return Value

Return Value kIOReturnSuccess on success. See IOReturn.h for error codes.

## Discussion

Discussion Leave the workgroup. The workgroup must have been joined with Join(). Use the same token in Join() for this method.
