<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2025"
  xmlns:link="http://www.xbrl.org/2003/linkbase"
  xmlns:xlink="http://www.w3.org/1999/xlink">
    <link:schemaRef xlink:href="rfmz-20251231.xsd" xlink:type="simple"/>
    <context id="From2025-07-01to2025-12-31">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001817159</identifier>
        </entity>
        <period>
            <startDate>2025-07-01</startDate>
            <endDate>2025-12-31</endDate>
        </period>
    </context>
    <dei:AmendmentFlag contextRef="From2025-07-01to2025-12-31" id="Fact000003">false</dei:AmendmentFlag>
    <dei:EntityInvCompanyType contextRef="From2025-07-01to2025-12-31" id="Fact000004">N-2</dei:EntityInvCompanyType>
    <dei:EntityCentralIndexKey contextRef="From2025-07-01to2025-12-31" id="Fact000005">0001817159</dei:EntityCentralIndexKey>
    <dei:DocumentType contextRef="From2025-07-01to2025-12-31" id="xdx2ixbrl0011">N-CSRS</dei:DocumentType>
    <dei:EntityRegistrantName contextRef="From2025-07-01to2025-12-31" id="Fact000012">RiverNorth Flexible Municipal Income Fund II, Inc.</dei:EntityRegistrantName>
    <dei:DocumentPeriodEndDate contextRef="From2025-07-01to2025-12-31" id="Fact000013">2025-12-31</dei:DocumentPeriodEndDate>
</xbrl>
