Skip to content

DeleteUser

Source: src/AWS/IdentityCenter/DeleteUser.ts

Runtime binding for the DeleteUser operation (IAM action identitystore:DeleteUser), scoped to one Instance.

Deletes a user from the bound instance’s identity store — the deprovisioning half of a user-sync Lambda. The instance’s IdentityStoreId is injected from the binding. Provide the implementation with Effect.provide(AWS.IdentityCenter.DeleteUserHttp).

// init — bind the operation to the Identity Center instance
const deleteUser = yield* AWS.IdentityCenter.DeleteUser(instance);
// runtime
yield* deleteUser({ UserId: userId });