Guide
How to remove a Salesforce user without losing their data
Last updated October 19, 2026
Written by Nuno, Salesforce Consultant
You can't delete a Salesforce user; you deactivate them instead, and every record they own stays in the org with them as owner until you transfer it. Deactivation stops the login and frees the license for someone else, so the usual order is freeze, reassign, then deactivate.
What deactivation keeps and what it changes
- Records they own stay put and keep them as owner until you transfer them. Their history and activity stay too.
- They stay in the user list as inactive and in public groups, and their own default account and opportunity teams are left as they were.
- They are removed from other users' default account and opportunity teams, and lose access to records shared with them manually or as a team member.
- Files they own and Chatter groups they own stay theirs until an admin reassigns them.
- Permission set assignments stay on the inactive user; Salesforce recommends removing them.
What stops you deactivating someone
Salesforce won't deactivate a user who is:
- The default lead owner or default lead creator, or the default or automated case owner.
- The default workflow user, or the only recipient of a workflow email alert.
- Selected in a custom hierarchy field (such as a manager field).
- A Customer Portal Administrator.
Freeze first, then clean up
Freezing blocks the login straight away but keeps the license assigned. Use it on the day someone leaves, then work through the clean-up before you deactivate:
- Fix the blockers above and remove the user from approval processes, or give their approvals to someone else.
- Change the owner and running user of any dashboard they own, or it may not show the expected results.
- Transfer their records. Mass Transfer Records in Setup moves accounts, leads, service contracts and custom object records, up to 250 at a time; transferring an account can also move its contacts, open activities, opportunities and cases. For more records, update the owner with Data Loader.
- Transfer ownership before deactivating if they own more than 10,000 records of one object, to avoid performance problems. Processes built in Process Builder also can't update records owned by inactive users.
- Check for integrations that log in as them. A deactivated user can't log in, through the API either, so move each tool to a dedicated integration user and test it first. Connected Apps OAuth Usage in Setup shows which apps each user has authorised.
Count what they own
Run a count per object before you transfer, replacing the Id with the user's:
SELECT COUNT() FROM Account WHERE OwnerId = '005XXXXXXXXXXXXXXX'
SELECT COUNT() FROM Opportunity WHERE OwnerId = '005XXXXXXXXXXXXXXX' AND IsClosed = false
SELECT COUNT() FROM Case WHERE OwnerId = '005XXXXXXXXXXXXXXX' AND IsClosed = falseReusing the license
A deactivated user no longer counts against your available licenses, so you can give the seat to a new starter instead of buying another. Your bill doesn't change until you lower the license count, which in practice means at renewal, before the notice date in your order form. Salesforce Saver lists frozen and inactive users still holding a paid seat, so you know who to work through.
Questions
Can I delete a Salesforce user?
No. Salesforce only lets you deactivate users, so their records and history aren't orphaned. You need the Manage Internal Users permission to deactivate.
Do I have to transfer records before deactivating?
Not always; records keep the inactive user as owner. Transfer them if someone needs to work them, if processes update them, or if the user owns more than 10,000 records of one object.
Does freezing a user free the license?
No. Freezing only blocks the login. Deactivate the user to free the license.
Check your own org
Salesforce Saver runs these checks in one read-only scan and shows a priced list of savings. The scan is free. Start a free scan or see every query it runs.