    pub fn delete_limits(&self, namespace: &Namespace) -> Result<(), StorageErr> {
        if let Some(data) = self.limits.write().unwrap().remove(namespace) {
            let limits = data.iter().cloned().collect();
            self.counters.delete_counters(limits)?;
        }