in classes/privacy/provider.php [159:168]
public static function delete_data_for_user(approved_contextlist $contextlist) {
if (empty($contextlist->count())) {
return;
}
foreach ($contextlist->get_contexts() as $context) {
if ($context->contextlevel == CONTEXT_USER) {
self::delete_user_data($context->instanceid);
}
}
}