Skip to main content

User retention policy

Set how your user data is retained in Learnster before being automatically deleted.

Written by Robin Janevret

User retention policy (or user data retention policy) is a set of rules that define how long user data is stored before being automatically deleted.

In Learnster, this specifically refers to how long your users' accounts are kept in the system, including when they are soft deleted and when they are permanently deleted. This applies if they:

  • Don't log in for a certain period

  • Never log in at all

  • Have been deactivated

  • Have been deleted but not yet permanently removed

The purpose of a retention policy is to:

  • Keep the system clean and up-to-date

  • Protect user privacy

  • Comply with data protection regulations (like GDPR)

In Learnster, you configure how long your user data is retained by toggling on the setting and choosing the number of days. Go to Settings > General, then scroll down to the User Retention Policy section.

The options explained:

Automatically delete users

There are three automatic rules. All three are off by default. When you switch a rule on, its day field unlocks and you choose how the users are deleted:

  • Soft delete (the default, recommended): the user is hidden and removed from everything, but kept for the grace period set under Permanently delete users below, so they can still be restored.

  • Permanently delete: the user and all their historical data are wiped straight away. They can never be retrieved.

  • Automatically delete users who haven't logged in for a long time (365 days when switched on)
    Users who haven't logged in to their Learnster account within the set number of days will be automatically deleted.
    ​Users are warned before their account is deleted with the message "Student account is about to be deleted". When the warning is sent is fixed by Learnster and can't be changed, but you can customize its text under Settings > System Messages.

  • Automatically delete users who never logged in (180 days when switched on)
    If a user has never logged in after being created in Learnster, their account will be automatically deleted the set number of days after it was created. These users get the same warning message first.
    ​Tip: You can view and download a report of users who have never logged in in Studio > Users > Invitations > Never logged in.

  • Automatically delete deactivated users (730 days when switched on)
    Users whose accounts have been deactivated (using the Inactive toggle in the top right corner of the User Card) will be automatically deleted after the configured number of days.
    ⚠️ No warning is sent before deactivated users are deleted.

Permanently delete users

You can configure how long soft-deleted data is retained before it's permanently deleted. When users are deleted manually, by an Advanced Rule, through the API or by a soft-delete rule above, their data isn't removed immediately. Instead, it's soft-deleted and kept in your Learnster database for a grace period. This helps prevent accidental data loss.

  • Permanently delete users is on by default, at 730 days. After that many days, soft-deleted users and all their historical data are permanently erased from your workspace and can never be retrieved.

  • If the person also belongs to another Learnster workspace, their underlying user account is kept for that workspace. To erase that account as well, switch on Permanently delete users active for other vendors (off by default).

  • No warning is sent before a user is permanently deleted.


ℹ️ If you're using the automatic deletion rules above, we recommend setting them to Soft delete to align with this retention setting.

Day ranges

Every day count in the User Retention Policy, including Permanently delete users, can be set from 1 to 9,999 days. Entering a value outside that range shows "Please enter a value between 1 - 9999".


About Soft delete users

Soft delete means that a user and their data are marked as deleted in the system but are still stored in your Learnster database for a limited time. This acts as a safety buffer in case the deletion was done by mistake. Soft-deleted users are hidden from the user list by default but can be restored by an administrator during the retention period.

What happens when you add a user who has been soft deleted?

When you add a user who was previously soft deleted — for example, via Add user, Teams in U, bulk upload, or an integration — the user will be restored with their original user information and course completion history. However, their roles, teams, tags, and ongoing courses will not be restored.

Will be restored:

  • Name

  • Email address

  • User attributes (e.g. Title, Company, etc.)

  • Course history (completed courses only)

  • User creation date (original)

  • Last login date

Will not be restored:

  • Roles (only the default role Learner will be added)

  • Teams

  • Tags

  • Assigned courses

  • Course progress

Did this answer your question?