def delete_smtp(module, array):
    """Delete SMTP settings"""
    changed = True
    if not module.check_mode:
        try:
            array.set_smtp(sender_domain='', username='', password='',
                relay_host='')
        except Exception:
            module.fail_json(msg='Delete SMTP settings failed')
    module.exit_json(changed=changed)
