Deleting a user account
Deleting a user account removes the account and its access, together with its shares, its shared
links and its trash. This page describes how to delete accounts, what FileRun deletes and what it
keeps, and the Deleted users section, which lists the records of the deleted accounts.
Caution
A deletion cannot be undone. FileRun cannot restore a deleted account. To stop the access of a user for a time, deactivate the account instead.
Which accounts can be deleted
These accounts cannot be deleted:
- the superuser account
- the visitor account
- the System account
- your own account
You delete a shared drive in the Shared drives section, not here. See
Deleting a shared drive.
An administrator can delete only the accounts that the administrator can manage. See Administrator permissions.
FileRun also refuses to delete an account that created records as an independent administrator, while these records exist:
- user accounts
- groups
- roles
- field sets and file types of the metadata
The message gives the number of each, for example "This account created 3 user accounts, 1 groups and 0 roles that still exist. Delete them first, or deactivate the account instead.". For the metadata, the message is "This account created 2 metadata field sets and 1 metadata file types that still exist.", followed by the same advice. Delete these records first, or deactivate the account instead. This also applies to an account that is no longer an administrator. The shared drives of which the account is the admin do not stop the deletion. See Shared drives.
Deleting accounts from the list of users
- Open the control panel, and go to
Users→All users. - Select the accounts that you want to delete. To select more than one account, hold the Ctrl key while you click the accounts. On a Mac, hold the Command key.
- Click
Delete, in the toolbar above the list. - The window
Delete users?opens, with the question "Are you sure you want to delete this user account?". When you selected more than one account, the question holds the number of accounts. - To delete the home folders of the accounts too, select
Permanently delete the users home folders.. See The home folder. - Click
Delete.
FileRun deletes each account on its own. When FileRun cannot delete an account, FileRun shows the reason and still deletes the other accounts.
Deleting an account from the user window
- In
Users→All users, double-click the account. The user window opens in a new tab. - Click
Delete user account, in the toolbar of the user window. For the superuser account, this button is disabled. - A window with the name of the user opens, with the question "Are you sure you want to delete this user account?".
- To delete the home folder of the account too, select
Permanently delete the user's home folder.. The checkbox is disabled when the account has no home folder. - Click
Delete.
The home folder
Without the option, the home folder and its files stay on the disk. Nobody can reach them through FileRun, except the accounts whose home folders contain that folder. For example, an administrator whose home folder holds the home folders of the users can still open the files.
With the option:
- FileRun deletes the home folder, with all its files and folders. The files do not go to the trash.
- FileRun also deletes the information that it stored about these files, such as their metadata.
- FileRun refuses the whole deletion when the home folder of another account is the same folder, or is inside it. The folders of the shared drives count too. The message is "The user's home folder cannot be deleted as other users have home folders located inside!". The account then stays, and nothing is deleted. FileRun compares the folders on the disk, so it also finds a home folder that is inside under another path, for example through a symbolic link, or with other capital letters on a file system that ignores the letter case.
- FileRun never deletes a home folder whose path leads to the root of the filesystem, to the installation folder of FileRun, to a folder inside the installation folder, or to a folder that contains it. In this case, FileRun deletes the account, and shows "The home folder could not be deleted!". FileRun shows the same message when the deletion of the folder fails.
Caution
The option deletes the files for good. Before you delete the account, check the path in the
Home foldercolumn of the list of users.
The automatic deletions never delete a home folder. See Automatic deletion.
What FileRun deletes
The account and its sign-in
- The account itself. Its username is free again, and you can give it to a new account. The new account is a different account, with a new ID.
- The sessions of the account. The user is signed out everywhere.
- The app passwords of the account, and the requests of apps that wait to connect to the account.
- The access tokens of the connected apps and of the API clients.
- The passkeys and the recovery codes of the 2-step verification.
- The links to the accounts of identity providers.
- The permissions of the account.
- The memberships of the account in groups. The groups stay.
- The e-mail notification rules about the actions of the account.
- The e-mail notification rules that the account created as an independent administrator.
- The messages to the user that are listed under
E-mail→Notices.
Files and sharing
- The items in the trash of the account. FileRun deletes them permanently.
- The shared links that the account created.
- The shares that the account made with other users and groups. The receivers also lose the shared links, the folder notification rules and the stars that they had inside the shared folders.
- The shares that other users made with the account.
- The memberships of the account in shared drives.
- The folder notification rules of the account.
- The collections of the account.
- The home folder, only when you choose the option above.
A guest account that received a share from the deleted account is also deleted, when nothing else is shared with the guest account.
Shared drives
- A shared drive whose admin was the deleted account has no admin after the deletion. Every administrator who can manage shared drives can then take the drive. See Drives without an admin.
- The shared drives where the account was a member keep their files. FileRun removes only the membership of the account.
What FileRun keeps
- The files in the home folder, unless you chose to delete the home folder.
- The entries of the account in the activity log, and in the activity logs of the files.
- The comments that the user wrote on files.
- A record of the deleted account.
The record of a deleted account
FileRun keeps a record of every deleted account, so that FileRun can still show the name of the account. The record holds:
- the names, the username and the e-mail address
- the other profile details, such as the phone number, the company, the website and the note
- the picture of the account
- the date of the registration, and the dates of the last sign-in and of the last activity
- the permissions and the groups that the account had
- the date of the deletion, the account that made the deletion, and the reason
The record holds no password and no other credential. Nobody can sign in with the record, and FileRun does not list it with the user accounts.
Where FileRun shows the name of a deleted account, for example in the trash and on the comments of the files, FileRun adds "(Deleted user)" after the name. The picture of the account stays visible.
Accounts that were deleted before the update to FileRun 2026.4.0 have no record. For these accounts, FileRun shows "Deleted user" in place of the name.
The Deleted users section
Only the superuser sees this section, under Users → All users → Deleted users. The section
lists the records of the deleted accounts, with the newest deletion first. The list also holds the
deleted guest accounts and the deleted shared drives.
The list has these columns:
First nameLast nameUsernameE-mail addressCompanyDeleted onDeleted by: the account that deleted the account. For an automatic deletion, this is the System account.Reason: empty when nobody gave a reason, for example when an administrator deleted the accountID: the ID that the account had
These are the reasons that FileRun writes in the Reason column:
- "User account automatically deleted because of inactivity"
- "Guest account automatically deleted because of inactivity"
- "Guest account automatically deleted because there are no shares anymore."
- "Account manually deleted from the command line, based on inactivity."
- "Shared drive deleted"
The Quick search field finds a text in the username, in the first name, in the last name and in
the e-mail address.
The section has no button to restore an account. To give the person access again, create a new account.
Erasing a record
To erase means to remove the record of a deleted account for good. For example, erase the record when a person asks you to remove their personal data.
- In
Users→All users→Deleted users, select the records. - Click
Erase. - FileRun asks "Please confirm the permanent erasure of the selected records.". Click
Yes.
After the erasure:
- FileRun deletes the record and the picture of the account.
- FileRun shows "Deleted user" in place of the name of the account, everywhere.
- The activity log gets the entry "Deleted user record erased".
Note
The erasure does not change the activity log. The entry "User deleted" holds the details of the deleted account, such as its name and its e-mail address. Other entries of the activity log can also hold the name of the account.
Automatic deletion
FileRun deletes accounts by itself in these cases:
- Guest accounts are deleted when nothing is shared with them any more, and after a time without use. See When guest accounts are deleted.
- The setting
Delete inactive user accounts after, underUsers→Settings→Retention, deletes the regular user accounts that are deactivated and that nobody used for that number of days. See Data retention. - The command
manage_inactive_users.phpwith--action deletedeletes the inactive accounts that are deactivated. It does not delete an account that is still active. See Command line tools. - When FileRun synchronises its user accounts with an LDAP directory, and
$config['system']['auth']['ldap']['sync']['removed_accounts_dn']is set, the synchronisation deletes the local accounts of the directory entries that it finds under that DN. See Authentication integration.
The automatic deletions do not delete the home folders.
The activity log and the notification rules
- FileRun logs a deletion as "User deleted", under the account that deleted the account. An automatic deletion is logged under the System account, with the reason. The entry holds the details of the deleted account, its permissions, its groups and the options of the deletion.
- FileRun logs a deletion that failed as "Failed to delete user".
- FileRun logs the deletion of a shared drive as "Shared drive deleted", not as "User deleted".
- FileRun logs the erasure of a record as "Deleted user record erased", or as "Failed to erase deleted user record".
A notification rule about these actions can send you an e-mail. See Activity log actions and Notification rules.
The API
The API can also delete accounts. See API: Delete FileRun user accounts.