Skip to Content
⚠️Active Development Notice: TimeTiles is under active development. Information may be placeholder content or not up-to-date.
ReferenceAPI ReferenceLibraryJobsHandlersExecute Account Deletion Job

web


web / lib/jobs/handlers/execute-account-deletion-job

lib/jobs/handlers/execute-account-deletion-job

Background job for executing scheduled account deletions.

This job runs periodically to check for users whose deletion grace period has expired and executes the actual deletion process. It transfers public data to the system user and permanently deletes private data.

Variables

executeAccountDeletionJob

const executeAccountDeletionJob: object

Job handler for executing scheduled account deletions.

Type Declaration

slug

slug: string = "execute-account-deletion"

handler()

handler: (__namedParameters) => Promise<{ output: \{ success: boolean; totalDue: number; successfulDeletions: number; failedDeletions: number; }; }>

Parameters
__namedParameters
job?

{ id?: string \| number; }

job.id?

string | number

req?

{ payload?: BasePayload; }

req.payload?

BasePayload

Returns

Promise<{ output: \{ success: boolean; totalDue: number; successfulDeletions: number; failedDeletions: number; }; }>

Last updated on