---
title: Delete script
description: Connectors continue to be released outside the IDM release. For the latest documentation, refer to the OpenICF documentation.
component: pingidm
version: 7.2
page_id: pingidm:connector-dev-guide:scripts/script-delete
canonical_url: https://docs.pingidentity.com/pingidm/7.2/connector-dev-guide/scripts/script-delete.html
---

# Delete script

|   |                                                                                                                                                                                   |
| - | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|   | Connectors continue to be released outside the IDM release. For the latest documentation, refer to the [OpenICF documentation](https://docs.pingidentity.com/openicf/index.html). |

A delete script deletes an object in the external resource. Connectors that do not support delete operations should throw an `UnsupportedOperationException`.

A sample delete script for an SQL database is provided in `openidm/samples/scripted-sql-with-mysql/tools/DeleteScript.groovy`.

* Input variables

  The following variables are available to an update script:

  * configuration

    A handler to the connector's configuration object.

  * options

    A handler to the Operation Options.

  * operation

    An OperationType that corresponds to the action (`DELETE`).

  * objectClass

    The object class that is deleted, such as `__ACCOUNT__` or `__GROUP__`.

  * uid

    The UID of the object to be deleted. The UID corresponds to the OpenICF `__UID__` attribute.

  * log

    A logger instance for the connector.

* Returns

  This script has no return value but should throw an exception if the delete is unsuccessful.
