for (String child : children)
{
remove(Fqn.fromRelativeElements(name, child));
}
}
Response response = connection.delete(getBucket(), key(name));
if (trace)
{
log.trace("delete " + name + " response=" + response);
}
if (!response.isOk() && !response.isNotFound())
throw new S3Exception("delete failed " + response);
parents.remove(name);
}