lib/influxdb2/client/delete_api.rb
def delete(start, stop, predicate: nil, bucket: nil, org: nil)
      delete_request = InfluxDB2::DeletePredicateRequest.new(start: _to_rfc3339(start), stop: _to_rfc3339(stop),
                                                             predicate: predicate)

      _delete(delete_request, bucket: bucket, org: org)
    end
# Delete time series data from InfluxDB.
#
# @example
# delete('2019-02-03T04:05:06+07:00', '2019-04-03T04:05:06+07:00',
#        predicate: 'key1="value1" AND key2="value"', bucket: 'my-bucket', org: 'my-org')
#
# @example
# delete(DateTime.rfc3339('2019-02-03T04:05:06+07:00'), DateTime.rfc3339('2019-03-03T04:05:06+07:00'),
#        predicate: 'key1="value1" AND key2="value"', bucket: 'my-bucket', org: 'my-org')
#
# @param [Object] start Start time of interval to delete data.
#   The start could be represent by [Time], [DateTime] or [String] formatted as RFC3339.
# @param [Object] stop Stop time of interval to delete data
#   The stop could be represent by [Time], [DateTime] or [String] formatted as RFC3339.
# @param [String] predicate InfluxQL-like predicate Stop time of interval to delete data
# @param [String] bucket specifies the bucket to remove data from
# @param [String] org specifies the organization to remove data from
Delete time series data from InfluxDB.
Delete time series data from InfluxDB .
def delete(start, stop, predicate: nil, bucket: nil, org: nil)
      delete_request = InfluxDB2::DeletePredicateRequest.new(start: _to_rfc3339(start), stop: _to_rfc3339(stop),
                                                             predicate: predicate)
      _delete(delete_request, bucket: bucket, org: org)
    end
def delete ( start , stop , predicate : nil , bucket : nil , org : nil ) delete_request = InfluxDB2 :: DeletePredicateRequest . new ( start : _to_rfc3339 ( start ) , stop : _to_rfc3339 ( stop ) , predicate : predicate ) _delete ( delete_request , bucket : bucket , org : org ) end
Delete time series data from InfluxDB.
Delete time series data from InfluxDB .
start
stop
predicate
bucket
org
org specifies the organization to remove data from
org specifies the organization to remove data from
example
None
example
None