How Do You Delete Old Assignments?

Re: How Do You Delete Old Assignments?

by Derek Chirnside -
Number of replies: 1

What happens if you delete the assignment module?

Do all the assignments get deleted in some sort of cron process?

Do grades get deleted?

-Derek

In reply to Derek Chirnside

Re: How Do You Delete Old Assignments?

by Perry Way -

Q: What happens if you delete the assignment module?

A: The folder containing the source code gets deleted ultimately, plus the tables to support the module if they are tables only for that module. (i.e. most modules use the `mdl_user` table but it's not part of their module)

Q: Do all the assignments get deleted in some sort of cron process?

A: Not exactly. What happens is there is a definition of how a module is supposed to implement code. Some of those items are callback functions which are called when you delete the module. One of those callbacks generally contains all the database code to drop the tables that that module relies on and created when you installed the module.

Q: Do grades get deleted?

A: I do not know the answer to this one, sorry! Would like to know, though, because I have a curious mind!