Class DeleteApi
Inheritance
System.Object
DeleteApi
Implements
Namespace: InfluxDB.Client
Assembly: InfluxDB.Client.dll
Syntax
public class DeleteApi : object, IDeleteApi
Constructors
DeleteApi(DeleteService)
Declaration
protected DeleteApi(DeleteService service)
Parameters
| Type | Name | Description |
|---|---|---|
| DeleteService | service |
Methods
Delete(DateTime, DateTime, String, Bucket, Organization, CancellationToken)
Delete Time series data from InfluxDB.
Declaration
public Task Delete(DateTime start, DateTime stop, string predicate, Bucket bucket, Organization org, CancellationToken cancellationToken = null)
Parameters
| Type | Name | Description |
|---|---|---|
| DateTime | start | Start time |
| DateTime | stop | Stop time |
| System.String | predicate | Sql where like delete statement |
| Bucket | bucket | The bucket from which data will be deleted |
| Organization | org | The organization of the above bucket |
| CancellationToken | cancellationToken | Cancellation token |
Returns
| Type | Description |
|---|---|
| Task |
Delete(DateTime, DateTime, String, String, String, CancellationToken)
Delete Time series data from InfluxDB.
Declaration
public Task Delete(DateTime start, DateTime stop, string predicate, string bucket, string org, CancellationToken cancellationToken = null)
Parameters
| Type | Name | Description |
|---|---|---|
| DateTime | start | Start time |
| DateTime | stop | Stop time |
| System.String | predicate | Sql where like delete statement |
| System.String | bucket | The bucket from which data will be deleted |
| System.String | org | The organization of the above bucket |
| CancellationToken | cancellationToken | Cancellation token |
Returns
| Type | Description |
|---|---|
| Task |
Delete(DeletePredicateRequest, String, String, CancellationToken)
Delete Time series data from InfluxDB.
Declaration
public Task Delete(DeletePredicateRequest predicate, string bucket, string org, CancellationToken cancellationToken = null)
Parameters
| Type | Name | Description |
|---|---|---|
| DeletePredicateRequest | predicate | Predicate delete request |
| System.String | bucket | The bucket from which data will be deleted |
| System.String | org | The organization of the above bucket |
| CancellationToken | cancellationToken | Cancellation token |
Returns
| Type | Description |
|---|---|
| Task |