Skip to main content

SF-0049 · Scenario · Easy

How to delete a Salesforce user?

✓ Verified by Vikas Singhal · Last reviewed 5/17/2026

The honest answer is: you can’t delete a Salesforce user. The platform doesn’t expose a delete operation on the User object, and there’s no Setup screen for it. Every user record is referenced as a foreign key by audit fields — CreatedById, OwnerId, LastModifiedById, ManagerId — on every record they ever created, owned, or touched. Removing the user row would orphan billions of references. So Salesforce simply doesn’t allow it.

What you do instead

The supported offboarding path is deactivation:

  1. Open the user record from Setup → Users.
  2. Uncheck the Active checkbox.
  3. Save.

The user is now blocked from logging in, hidden from most active-user lookups, and their license seat is released for reassignment. Their record stays in the org forever, but it’s inert.

The freeze-first pattern

If you need to lock the account right now — for example, during a security incident — click Freeze on the user detail page before deactivating. Freezing is instant and reversible; deactivation can be blocked by ownership constraints, queue memberships, default-owner assignments, or running flows that reference the user. The standard sequence is:

  1. Freeze — instant lockout, license still held.
  2. Reassign records the user owns (opportunities, cases, leads, custom objects).
  3. Remove from groups, queues, territories, default owners, and approval delegates.
  4. Deactivate — license seat is freed.

Common interview follow-ups

  • What if I really need the user gone for GDPR? Use the Data Privacy Record features or contact Salesforce Support — they can scramble personal fields (Username, Email, Name) on inactive users while preserving the audit references. The row itself still exists.
  • Can I reuse a username? Once a username is used, it’s reserved globally across all Salesforce orgs. To reuse it, edit the deactivated user’s Username field to something else (e.g., append .deactivated) and the original becomes available.
  • Will reports still show the user’s name? Yes — audit fields and ownership references continue to display the user’s name on historical records. That’s by design for compliance.

Verified against: Salesforce Help — Deactivate Users and Sharing & Visibility Architect resources. Last reviewed 2026-05-17.