Skip to main content

KeyRemove

Permanently removes an API key by its key ID.

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

:::caution Irreversible Action Removing a key immediately invalidates it. Any integrations or systems authenticating with this key will stop working instantly. Verify no active integrations depend on this key before removing it. :::

Method Signature

bool KeyRemove(string SessionID, int KeyID)

Parameters

ParameterTypeRequiredDescription
SessionIDstringYesActive session token from Login()
KeyIDintYesID of the API key to remove

Response Object — bool

Returns true if the key was successfully removed; false otherwise.

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

Code Examples

// .NET 10 — dotnet-svcutil generated proxy
// Remove an API key — this action is immediate and irreversible
bool removed = await client.KeyRemoveAsync(sessionID, keyId);

if (removed)
{
Console.WriteLine($"Key {keyId} has been removed. Any integrations using this key are now invalidated.");
}
else
{
Console.WriteLine($"Key {keyId} could not be removed. Verify the key ID and your permissions.");
}

REST Equivalent

See Delete KeyDELETE /v2/keys.