InfluxDB 2.0 JavaScript client
Home > @influxdata/influxdb-client-apis > PostDeleteRequest
Signature:
interface PostDeleteRequest
Property | Modifiers | Type | Description |
---|---|---|---|
body | DeletePredicateRequest | <p>Time range parameters and an optional **delete predicate expression**.</p><p>To select points to delete within the specified time range, pass a *delete predicate expression** in the predicate property of the request body. If you don’t pass a predicate , InfluxDB deletes all data with timestamps in the specified time range.</p><p>#### Related guides</p><p>- Delete data. - Learn how to use delete predicate syntax.</p> |
|
bucket? | string | (Optional) The name or ID of the bucket to delete data from. If you pass both bucket and bucketID , bucketID takes precedence. |
|
bucketID? | string | (Optional) The ID of the bucket to delete data from. If you pass both bucket and bucketID , bucketID takes precedence. |
|
org? | string | <p>(Optional) The organization to delete data from. If you pass both orgID and org , they must both be valid.</p><p>#### InfluxDB Cloud</p><p>- Doesn’t require org or orgID . - Deletes data from the bucket in the organization associated with the authorization (API token).</p><p>#### InfluxDB OSS</p><p>- Requires either org or orgID .</p> |
|
orgID? | string | <p>(Optional) The ID of the organization to delete data from. If you pass both orgID and org , they must both be valid.</p><p>#### InfluxDB Cloud</p><p>- Doesn’t require org or orgID . - Deletes data from the bucket in the organization associated with the authorization (API token).</p><p>#### InfluxDB OSS</p><p>- Requires either org or orgID .</p> |