Delete InfluxDB data

To delete data from an InfluxDB bucket, you can use the Influx command line interface (CLI), which is in C:\Program Files (x86)\Rockwell Software\RSView Enterprise\3rdParty\InfluxData\InfluxCli. The default bucket is the name of your HMI server name. To view your bucket list, use the command
influx bucket list
.
This section introduces an example to delete all points in a specified time range. For more information, see InfluxDB OSS documentation, Delete data or refer to your own InfluxDB version's documentation.
To delete all points in a specified time range
  • Use the following command:
    influx delete --bucket example-bucket --start 2023-10-01T00:00:00Z --stop 2023-10-02T00:00:00Z
    , where example-bucket is the name of your HMI server name, and the time range follows the format of
    year-month-date
    T
    hour:minute:
    second
    Z
    .
    IMPORTANT:
    The time stamp for the logging data is Coordinated Universal Time (UTC). Therefore, when specifying the start and stop time range, make sure to use the UTC time.
Provide Feedback
Have questions or feedback about this documentation? Please submit your feedback here.
Normal