deleteUser

@Modifying(clearAutomatically = true)
@Query(value = ""DELETE FROM " + USERS_KEY + " WHERE " + IDENTIFIER_KEY + "=:" + IDENTIFIER_KEY", nativeQuery = true)
abstract fun deleteUser(@Param(value = "id") userId: String)

Method to execute the query to delete a user from the system

Parameters

userId

: the user identifier of the user to delete