flexrep.inboundFilterDelete() as null
This function deletes the inbound filter for this database. If no filter is currently configured, an error will be thrown.
const flexrep = require('/MarkLogic/flexrep'); declareUpdate(); flexrep.inboundFilterDelete();
http://marklogic.com/xdmp/privileges/flexrep-admin