code: func (d *namespacedResourcesDeleter) deleteNamespace(namespace *v1.Namespace) error {
  	var opts *metav1.DeleteOptions
  	uid := namespace.UID
  	if len(uid) > 0 {
  		opts = &metav1.DeleteOptions{Preconditions: &metav1.Preconditions{UID: &uid}}
  	}
  	err := d.nsClient.Delete(namespace.Name, opts)
  	if err != nil && !errors.IsNotFound(err) {
  		return err
  	}
  	return nil
  }
docs: // Deletes the given namespace.