MCPcopy Create free account
hub / github.com/Mnexa-AI/e2a / DeleteUserData

Method DeleteUserData

internal/identity/user_data_rights.go:265–267  ·  view source on GitHub ↗

@name DeleteUserDataResult DeleteUserData wipes everything tied to a user in a single transaction. Schema cascades cover most of it (user_sessions, domains, agent_identities, api_keys, usage_summaries all `ON DELETE CASCADE` from users; messages cascade through agent_identities; webhook_deliveries

(ctx context.Context, userID string)

Source from the content-addressed store, hash-verified

263// Per-table counts are returned to the caller so an operator can attest
264// to what was removed in audit / compliance contexts.
265func (s *Store) DeleteUserData(ctx context.Context, userID string) (*DeleteUserDataResult, error) {
266 return s.DeleteUserDataTx(ctx, userID, nil)
267}
268
269// DeleteUserDataTx is DeleteUserData with an optional per-domain in-tx hook
270// run for every domain the user owns, BEFORE the cascade deletes them. It is

Implementers 1

Storeinternal/identity/store.go

Calls 1

DeleteUserDataTxMethod · 0.95