protected static function delete_user_data($userid) {
        global $DB;
        $DB->delete_records_select('messageinbound_messagelist', 'userid = :userid', ['userid' => $userid]);
        \core_userkey\privacy\provider::delete_userkeys('messageinbound_handler', $userid);
    }
protected static function delete_user_data($userid) {
        global $DB;
        $DB->delete_records_select('messageinbound_messagelist', 'userid = :userid', ['userid' => $userid]);
        \core_userkey\privacy\provider::delete_userkeys('messageinbound_handler', $userid);
    }
protected static function delete_user_data ( $ userid ) { global $ DB ; $ DB -> delete_records_select ( 'messageinbound_messagelist' , 'userid = :userid' , [ 'userid' => $ userid ] ) ; \ core_userkey \ privacy \ provider :: delete_userkeys ( 'messageinbound_handler' , $ userid ) ; }
Delete a user's data.

@param int $userid The user ID.
@return void
Delete a user s data .