Delete data with CLI

Hi, I am struggling with something I have already done, but for an unkown reason it is not working anymore. I want to delete all measurement with kwh.
I am using CLI with this command

influx delete --bucket aggregate --start 2023-01-01T00:00:00.00Z --stop 2023-07-04T20:00:00.00Z -p ‘_measurement=“kwh”’’

I have this error message : command not found: --predicate

What’s wrong ?


use the below command in CLI

influx bucket delete --name aggregate ‘_measurement=“Kwh”’

it will work

In fact my issue is not there I guess, whatever I do have the same error message… Even by launching only influx command.
influx:146: command not found: --predicate

Just solve my issue by updating the client and using sudo !