code: @Override
      public Node delete(ArchivePath path) {
          Validate.notNull(path, "No path was specified");
          ArchivePath safePath = path;
  
          NodeImpl node = content.get(safePath);
          if (node == null) {
              if (path.get().endsWith("/")) {
                  safePath = ArchivePaths.create(path.get().substring(0, path.get().length() - 1));
                  node = content.get(safePath);
              }
              if (node == null) {
                  return null;
              }
          }
  
          return removeNodeRecursively(node, safePath);
      }
docs: {@inheritDoc}
  
  @see org.jboss.shrinkwrap.api.Archive#delete(org.jboss.declarchive.api.ArchivePath)