Delete script

Last modified 04 May 2026 13:29 +02:00

How to implement a delete operation in a SCIMREST connector using a Groovy script with a DELETE endpoint and path parameter for the object identifier.

Basic delete script example

The simplest delete script for User object class with common REST pattern, where DELETE HTTP operation is used could look like this:

objectClass("User") {
    delete {
        endpoint(DELETE, "/users/{id}")
    }
}

Where:

  • this simplest script heavilly relies on default behavior of connector framework.

  • The endpoint method specifies the endpoint to be used for delete operation. In this case we use path parameter {id} which will be replaced with the value of the id attribute of the object being deleted.

Was this page helpful?
YES NO
Thanks for your feedback