AIProjectMemoryStores.DeleteMemory Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| Name | Description |
|---|---|
| DeleteMemory(String, String, RequestOptions) |
[Protocol Method] Delete a memory item from a memory store.
|
| DeleteMemory(String, String, CancellationToken) |
Delete a memory item from a memory store. |
DeleteMemory(String, String, RequestOptions)
- Source:
- AIProjectMemoryStores.cs
[Protocol Method] Delete a memory item from a memory store.
- This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
public virtual System.ClientModel.ClientResult DeleteMemory(string name, string memoryId, System.ClientModel.Primitives.RequestOptions options);
abstract member DeleteMemory : string * string * System.ClientModel.Primitives.RequestOptions -> System.ClientModel.ClientResult
override this.DeleteMemory : string * string * System.ClientModel.Primitives.RequestOptions -> System.ClientModel.ClientResult
Public Overridable Function DeleteMemory (name As String, memoryId As String, options As RequestOptions) As ClientResult
Parameters
- name
- String
The name of the memory store.
- memoryId
- String
The ID of the memory item to delete.
- options
- RequestOptions
The request options, which can override default behaviors of the client pipeline on a per-call basis.
Returns
The response returned from the service.
Exceptions
name or memoryId is null.
name or memoryId is an empty string, and was expected to be non-empty.
Service returned a non-success status code.
Applies to
DeleteMemory(String, String, CancellationToken)
- Source:
- AIProjectMemoryStores.cs
Delete a memory item from a memory store.
public virtual System.ClientModel.ClientResult<Azure.AI.Projects.DeleteMemoryResponse> DeleteMemory(string name, string memoryId, System.Threading.CancellationToken cancellationToken = default);
abstract member DeleteMemory : string * string * System.Threading.CancellationToken -> System.ClientModel.ClientResult<Azure.AI.Projects.DeleteMemoryResponse>
override this.DeleteMemory : string * string * System.Threading.CancellationToken -> System.ClientModel.ClientResult<Azure.AI.Projects.DeleteMemoryResponse>
Public Overridable Function DeleteMemory (name As String, memoryId As String, Optional cancellationToken As CancellationToken = Nothing) As ClientResult(Of DeleteMemoryResponse)
Parameters
- name
- String
The name of the memory store.
- memoryId
- String
The ID of the memory item to delete.
- cancellationToken
- CancellationToken
The cancellation token that can be used to cancel the operation.
Returns
Exceptions
name or memoryId is null.
name or memoryId is an empty string, and was expected to be non-empty.
Service returned a non-success status code.