Skip to Content
Anuma SDKClientInternalFunctionspostApiV1AdminPrivyDevWipe

postApiV1AdminPrivyDevWipe

postApiV1AdminPrivyDevWipe<ThrowOnError>(options: Options<PostApiV1AdminPrivyDevWipeData, ThrowOnError>): RequestResult<PostApiV1AdminPrivyDevWipeResponses, PostApiV1AdminPrivyDevWipeErrors, ThrowOnError>

Defined in: src/client/sdk.gen.ts:368 

Bulk-delete test users from the Privy dev app

Lists Privy users, drops anyone in the in-code KEEP set, sorts by created_at ascending, and deletes the oldest N (default 50, max 200). For each matched portal account also runs the cascading DB delete + Stripe cancellation. Requires admin API key. Refuses to run from any deployment whose PORTAL_ENVIRONMENT is not “dev”.

Type Parameters

Type ParameterDefault type

ThrowOnError extends boolean

false

Parameters

ParameterType

options

Options<PostApiV1AdminPrivyDevWipeData, ThrowOnError>

Returns

RequestResult<PostApiV1AdminPrivyDevWipeResponses, PostApiV1AdminPrivyDevWipeErrors, ThrowOnError>

Last updated on