implemented clearByNamespace