API InfluxDB 2.0: Delete time series data (auth. problem)

Trying the code:

curl --request POST
http://localhost:8086/api/v2/query?org=privat
–header “Authorization: Token $TOKEN”
–header ‘Accept: application/csv’
–header ‘Content-type: application/vnd.flux’
–data ‘from(bucket:“finanz-test”)
|> range(start: 2021-02-21T15:48:06.270251807Z)
|> filter(fn: (r) => r[“_measurement”] == “Kurse”)
|> filter(fn: (r) => r[“ISIN”] == “Fut_DAX”)’

everything works fine. BUT for:

curl --request POST
http://0.0.0.0:8086/api/v2/delete/?org=privat&bucket=finanz-test
–header “Authorization: Token $TOKEN”
–header ‘Content-Type: application/json’
–data ‘{ “start”: “2021-02-21T15:48:06.270251807Z”, “stop”: “2021-02-21T15:50:11.267979687Z” }’

I get the message {"code":"unauthorized","message":"unauthorized access"}. It is the same authorization, I don’t understand the difference.
I use docker with influxdb:v2.0.4.

Hello,

Try to use the administrator Token for deleting data. And tell us !

Yes, I use the admin's Token.
I also tried a fresh generated “All Access Token”, but it also doesn’t work.

@jennerwein can you open an issue on GitHub?

@dan-moran Yes, I did open an issue.