Totara have a construct "Purge/Purge data" for configurable purging of user data (if user gets suspended or deleted).
Plugins that have database tables with user references can add support for it in Totara.
https://totara.help/docs/purge-type-settings
A suggestion is that you add support for it in your totara18 branch for purging of user references in for example the dbtable that stores information on user watch progress.
Examples on how to add support for it can be found, for example, in server/mod/facetoface/classes/userdata
And a unittest for it: server/mod/facetoface/tests/userdata_signups_test.php
Totara have a construct "Purge/Purge data" for configurable purging of user data (if user gets suspended or deleted). Plugins that have database tables with user references can add support for it in Totara. https://totara.help/docs/purge-type-settings
A suggestion is that you add support for it in your totara18 branch for purging of user references in for example the dbtable that stores information on user watch progress.
Examples on how to add support for it can be found, for example, in
server/mod/facetoface/classes/userdata
And a unittest for it:server/mod/facetoface/tests/userdata_signups_test.php