def METHOD_NAME(form_setup):
    """Delete a remote Mycodo from the Remote Admin Dashboard."""
    if not utils_general.user_has_permission('edit_settings'):
        return redirect(url_for('routes_general.home'))
    try:
        delete_entry_with_id(Remote,
                             form_setup.remote_id.data)
        display_order = csv_to_list_of_str(
            DisplayOrder.query.first().remote_host)
        display_order.remove(form_setup.remote_id.data)
        DisplayOrder.query.first().remote_host = list_to_csv(display_order)
        db.session.commit()
    except Exception as except_msg:
        flash(gettext("Error: %(err)s",
                      err='Remote Host Delete: {msg}'.format(msg=except_msg)),
              "error")