> ## Documentation Index
> Fetch the complete documentation index at: https://docs.blinkops.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Erase Device

Erase a device.

<Note>
  External Documentation

  To learn more, visit the [Kandji documentation](https://api-docs.kandji.io/#149ae2cc-fb7f-42ce-8379-187878685303).
</Note>

## Parameters

<div className="integrations-table">
  | Parameter                | Description                                                                                                                                                                                                                               |
  | ------------------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
  | Device ID                | The device's ID.                                                                                                                                                                                                                          |
  | Disallow Proximity Setup | If checked, disables Proximity Setup on the next reboot and skips the pane in Setup Assistant. This parameter is available in iOS 11 and later. <br /><br />**Note**: Prior to iOS 14, don’t use this parameter with any other parameter. |
  | PIN                      | The six-character PIN for Find My. This parameter is available in macOS 10.8 and later.<br />Note: This parameter will be ignored for iOS, iPadOS, and tvOS devices.                                                                      |
  | Preserve Data Plan       | If checked, preserves the data plan on an iPhone or iPad with eSIM functionality, if one exists. This parameter is available in iOS 11 and later.                                                                                         |
  | Profile ID               | Profile ID value associated with a Wi-Fi profile payload.<br /><br />**Note**: Required when the device doesn’t have ethernet access.                                                                                                     |
  | Return To Service        | If checked, the device tries to re-enroll itself automatically after erasure. <br /><br />**Note**: The user needs to deactivate all activation locks for this feature to work correctly.                                                 |
</div>

## Workflow Library Example

[Erase Device with Kandji and Send Results Via Email](https://library.blinkops.com/workflows/erase-device-with-kandji-and-send-results-via-email)

<div className="iframe-wrapper">
  <div className="iframe-media">
    <img src="https://mintcdn.com/blinkops-2/ojHYuDeYX5FWuN8a/img/Icons/play-box.svg?fit=max&auto=format&n=ojHYuDeYX5FWuN8a&q=85&s=b8af968e71438a9499c3223c9bd29fb2" alt="Workflow Library" width="16" height="16" data-path="img/Icons/play-box.svg" />

    Preview this Workflow on desktop
  </div>

  <iframe className="iframe" src="https://library.blinkops.com/workflows/erase-device-with-kandji-and-send-results-via-email/canvas" />
</div>
