remove all the rows created by dynamic partial view

Can someone help me how to delete all the dynamic partial view?

I have checkboxes, Add and Delete. When Delete is ticked then deleted all the dynamic Partial view like, test1, test2, test3. When Add is clicked I am adding partial view

$("#NewOtherFunding").click(function () {
        document.getElementById("FundingId").style.display = "flex";

            url: "/CreateApplicationFromSearch/OtherFundingEntryRow",
            cache: false,
            success: function (html) {