'Remove expired licenses'

def remove_expired_licenses(self):

    remove_expired = netapp_utils.zapi.NaElement('license-v2-delete-expired')
    try:
        self.server.invoke_successfully(remove_expired, enable_tunneling=False)
    except netapp_utils.zapi.NaApiError as e:
        self.module.fail_json(msg=('Error    removing    expired    licenses:    %s' % to_native(e)), exception=traceback.format_exc())
