Loading

Delete users using Tabcmd from a specific site

Julkaisupäivä: Aug 28, 2026
Kuvaus

Customers sometimes intend to remove a list of users from a single site (e.g. via a CSV of usernames) but instead find those users removed from the whole server, including their accounts and memberships on all other sites.

This happens because tabcmd deleteusers is a server-level command. The -s/--server and -t/--site flags on any tabcmd command specify which server to connect to and which site context to authenticate into for that command — they do not change the scope of what deleteusers deletes. deleteusers always removes the named users' accounts from the server, regardless of which site is passed via -t.

Example of the command that causes this:

tabcmd deleteusers "COMM_REMOVE.csv" -s "localhost" -t "SiteH1" --no-certcheck

Even though -t "SiteH1" is specified, this deletes the listed users from the entire server, not just SiteH1.

Ratkaisu

To remove users from a single site only, use deletesiteusers instead of deleteusers, keeping the same server/site flags:

tabcmd deletesiteusers "COMM_REMOVE.csv" -s "localhost" -t "SiteH1" --no-certcheck

deletesiteusers removes the listed users' membership from the specified site only; their server-level account and any other site memberships remain intact. The -t flag here correctly scopes the operation because deletesiteusers is a site-level command; the CSV file format is unchanged between the two commands.

If users were already fully deleted from the server via deleteusers, there is no built-in undo. They will need to be recreated (tabcmd createusers or createsiteusers) and manually re-added to any relevant sites, groups, and content ownership.

Knowledge-artikkelin numero

005393492

 
Ladataan
Salesforce Help | Article