I have a custom plugin that in the past defined a scheduled task, which I now want to remove (as the task is no longer required).
I was just wanting to check the anticipated / correct way for removal.
My gut reaction is that I could do in /db/upgrade.php in xmldb_local_xxxx_upgrade() a $DB->delete_record('task_scheduled', array('module'=>'local_strath', 'classname'=>\local_strath\task\get_token);
I'm correct in thinking that there isn't anything that uninstalls (e.g. in the *opposite* manner that the definition on db/tasks.php works) tasks?