'Remove requested licenses
:param:
remove_list : List of packages to remove'

def remove_licenses(self, remove_list):

    license_delete = netapp_utils.zapi.NaElement('license-v2-delete')
    for package in remove_list:
        license_delete.add_new_child('package', package)
    if (self.serial_number is not None):
        license_delete.add_new_child('serial-number', self.serial_number)
    try:
        self.server.invoke_successfully(license_delete, enable_tunneling=False)
    except netapp_utils.zapi.NaApiError as e:
        self.module.fail_json(msg=('Error    removing    license    %s' % to_native(e)), exception=traceback.format_exc())
