Inactive User Cleanup

Overview

This plugin deletes inactive user accounts. The cleanup process runs with the LMS cron.

The cleanup-process runs in two steps for each user. If an inactive user is found he gets a notification mail and is marked as notified within this plugin.
When the user still has not accessed the system after a chosen timespan he will be deleted in the second step.
When a notified user logs in again before the deletion process starts, his notify entry is removed with the next run of the cleanup process.

The process checks the last access timestamp of the user against the present time stamp.
You can configure how often the process is started by a time interval in days.

Installation

  1. Make sure you have all the required versions.
  2. Download the User Cleanup plugin.
  3. Unzip it into your lms/blocks/ directory.
  4. Login to you lms as Administrator and go to Site administration -> Notifications to trigger the installation process.
  5. Turn editing on the home page.
  6. Add the block to the page.
  7. Follow the link in the block to the settings page and make your settings(Details described below).

For more information see Installing contributed modules or plugins.

Using

The block can be included by the admin on the main page. The block offers a link to the plugin settings.

NOTE: The cleanup process itself runs in the lms cron. So the lms cron must be running to use this plugin. 

Settings

The settings for the cleanup process

Activate
Here you can activate or deactivate the cleanup cron process.
Interval to check
Set how often the process should start (days). If set to 0 or negative the process runs with every lms cron.
Days of inactivity

number of days since the last login to mark the user as inactive and notify him by mail.
Days before deletion
The number of days after the notify mail until he gets deleted.

Mail Text

The mail text and any other texts of the plugin can be customized over the lms Language customization.