github.com/milvus-io/milvus-sdk-go/v2@v2.4.1/docs/release_collection.md (about)

     1  # Release Collection
     2  
     3  API to release collection by name.
     4  
     5  ## Parameters
     6  
     7  | Parameter    | Description                                                  | Type                     |
     8  | ------------ | ------------------------------------------------------------ | ------------------------ |
     9  | `ctx`        | Context to control API invocation process.                    | context.Context          |
    10  | `name`       | Name of the collection to release.                            | String                   |
    11  
    12  ## Response
    13  
    14  `err`: error in the process (if any). Possible errors are listed below:
    15  
    16    - `ErrClientNotReady`, error that the client is not connected.
    17  
    18    - `ErrCollectionNotExists`, error that the collection with the specified name does not exist.
    19  
    20    - error that API invocation failed.
    21  
    22  ## Example
    23  
    24  ```go
    25  ctx := context.Background()
    26  // cli is a valid Client instance, assume test collection exists
    27  err := cli.ReleaseCollection(ctx, "TestCollection")
    28  // handles the error not nil
    29  ```