Skip to main content

UserTerminate

Permanently terminates a user account, revoking all access and invalidating all sessions. This action is irreversible.

:::caution Established API The SOAP API is in maintenance mode. For new integrations use the REST equivalent. :::

:::danger Irreversible Action UserTerminate permanently terminates the user account. The user's login, sessions, and API keys are immediately invalidated and cannot be restored. Use UserSuspend if you need a reversible option. :::

Method Signature

bool UserTerminate(string SessionID, int UserID)

Parameters

ParameterTypeRequiredDescription
SessionIDstringYesActive session token from Login()
UserIDintYesUnique identifier of the user account to permanently terminate

Response

Returns true if the account was successfully terminated; throws a SOAP fault on failure.

<!-- Example response XML -->
<UserTerminateResult>true</UserTerminateResult>

Code Examples

// .NET 10 — dotnet-svcutil generated proxy
using ECGridOSClient;

var client = new ECGridOSPortTypeClient();

// Permanently terminate user 5001 — this action cannot be undone
bool success = await client.UserTerminateAsync(sessionID, UserID: 5001);

if (success)
{
Console.WriteLine("User 5001 has been permanently terminated.");
}

REST Equivalent

See Terminate UserDELETE /v2/users/{id}.