public static function delete_user_field_mapping($id) {
        require_capability('moodle/site:config', context_system::instance());
        $userfieldmapping = new user_field_mapping($id);

        // Will throw exceptions on validation failures.
        return $userfieldmapping->delete();
    }
public static function delete_user_field_mapping($id) {
        require_capability('moodle/site:config', context_system::instance());
        $userfieldmapping = new user_field_mapping($id);

        // Will throw exceptions on validation failures.
        return $userfieldmapping->delete();
    }
public static function delete_user_field_mapping ( $ id ) { require_capability ( 'moodle/site:config' , context_system :: instance ( ) ) ; $ userfieldmapping = new user_field_mapping ( $ id ) ; // Will throw exceptions on validation failures. return $ userfieldmapping -> delete ( ) ; }
Delete a user_field_mapping.

Requires moodle/site:config capability at the system context.

@param int $id The id of the user_field_mapping to delete.
@return boolean
Delete a user_field_mapping .