|
5.
|
|
|
You can view help information on the individual commands that are available for each script:
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../source/administration/cli.rst:14
|
|
6.
|
|
|
``sudo -u www-data php htdocs/admin/cli/[file name of the script].php -h``
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../source/administration/cli.rst:16
|
|
7.
|
|
|
|new in Mahara 18.10| Delete certain groups in bulk
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../source/administration/cli.rst:25
|
|
8.
|
|
|
.. image:: images/newin18point10.*
:alt: new in Mahara 18.10
|
|
|
represents a line break.
Start a new line in the equivalent position in the translation.
|
|
|
represents a space character.
Enter a space in the equivalent position in the translation.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../source/shortcuts.rstext:1
../source/shortcuts.rstext:1
../source/shortcuts.rstext:1
../source/shortcuts.rstext:1
../source/shortcuts.rstext:1
../source/shortcuts.rstext:1
../source/shortcuts.rstext:1
../source/shortcuts.rstext:1
../source/shortcuts.rstext:1
../source/shortcuts.rstext:1
../source/shortcuts.rstext:1
../source/shortcuts.rstext:1
../source/shortcuts.rstext:1
|
|
9.
|
|
|
If you have a large site and deleted a lot of users, you may also wish to clean up old groups in an efficient way. You can do the following with the bulk group deletion script:
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../source/administration/cli.rst:27
|
|
10.
|
|
|
delete all groups that have no members, e.g. after users were deleted;
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../source/administration/cli.rst:29
|
|
11.
|
|
|
and delete all groups that have only site administrators as members;
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../source/administration/cli.rst:38
|
|
12.
|
|
|
and / or delete only groups associated with a certain institution.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../source/administration/cli.rst:39
|
|
13.
|
|
|
Execute the script with the following command. A dry run is made by default so that no data is deleted by accident.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../source/administration/cli.rst:41
../source/administration/cli.rst:64
../source/administration/cli.rst:90
|
|
14.
|
|
|
``sudo -u www-data php htdocs/admin/cli/delete_inactive_groups.php``
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../source/administration/cli.rst:43
|