factory::delete was not flushing after delete operations. delete command fixed