archivist: clarify Remove() comment re optional versioning

This commit is contained in:
2026-11-02 11:13:02 +01:00
parent 3bba6a82db
commit 61586a670a
+3 -2
View File
@@ -97,8 +97,9 @@ func (c *Client) Copy(ctx context.Context, srcKey, dstKey string) error {
return err
}
// Remove deletes the object; with a versioned bucket this creates a delete
// marker and the data remains recoverable.
// Remove deletes the object. On a versioned bucket this creates a delete
// marker and the data remains recoverable; without versioning the deletion
// is final (see the startup warning in New).
func (c *Client) Remove(ctx context.Context, key string) error {
return c.mc.RemoveObject(ctx, c.Bucket, key, minio.RemoveObjectOptions{})
}