Hi
if you need to automate user deletion, can you use the test script in the page below ("Test of deleting user data") to delete them GDPR-style?
https://docs.moodle.org/dev/Privacy_API/Utilities
Or is there a simple function to use, such as delete_user() ?