Skip to main content

Delete Organization

Deletes an organization. This operation is permanent and cannot be undone.

Parameters

ParameterTypeRequiredDescription
organizationIdstringYesUnique identifier of the organization

Response

Returns true if the organization was successfully deleted.

Examples

import (
"context"
"github.com/silentwitness/go-sdk"
)

success, err := silentwitness.Organizations.Delete(ctx, "org_abc123def456")
if err != nil {
log.Fatal(err)
}

if success {
fmt.Println("Organization deleted")
}

Errors

CodeDescription
NOT_FOUNDOrganization does not exist
PERMISSION_DENIEDOrganization belongs to a different account
UNAUTHENTICATEDInvalid or missing API key
warning

This operation is permanent. Always verify the organization details before deleting.