How to Clear the filter in the list view

That for, you have to write a listview client script for that doctype.

Please check the reference: Why the filter is already applied - #2 by NCP

If the reference code doesn’t work then apply the below client script.

frappe.listview_settings['Your DocType'] = {
    onload: function(listview) {
        setTimeout(() => {
            $('.filter-x-button').click();
        }, 50);
    }
};

Please set your doctype name in the client script.

2 Likes