diff --git a/api/layer/container.go b/api/layer/container.go index eb288ee15..af806c948 100644 --- a/api/layer/container.go +++ b/api/layer/container.go @@ -179,7 +179,3 @@ func (n *layer) setContainerEACLTable(ctx context.Context, idCnr cid.ID, table * func (n *layer) GetContainerEACL(ctx context.Context, idCnr cid.ID) (*eacl.Table, error) { return n.neoFS.ContainerEACL(ctx, idCnr) } - -func (n *layer) deleteContainer(ctx context.Context, idCnr cid.ID, sessionToken *session.Container) error { - return n.neoFS.DeleteContainer(ctx, idCnr, sessionToken) -} diff --git a/api/layer/layer.go b/api/layer/layer.go index e855b9b16..db94e8cf7 100644 --- a/api/layer/layer.go +++ b/api/layer/layer.go @@ -659,5 +659,5 @@ func (n *layer) DeleteBucket(ctx context.Context, p *DeleteBucketParams) error { } n.bucketCache.Delete(p.BktInfo.Name) - return n.deleteContainer(ctx, p.BktInfo.CID, p.SessionToken) + return n.neoFS.DeleteContainer(ctx, p.BktInfo.CID, p.SessionToken) }