How to force delete all data in a bucket?

Hello, I am using influxdb2-2.7.10-1 on Linux. I am trying to restart from scratch and delete all old data in the buckets. For one of them I am unable to do it. The command:

influx delete --bucket bucketName --start 1970-01-01T00:00:00Z --stop $(date +"%Y-%m-%dT%H:%M:%SZ")

returns:

Error: failed to delete data: Post "http://...: EOF

Any idea how could I remove all the data in a clean way?

Similar error for a backup:

2024/10/21 09:24:22 INFO: Downloading metadata snapshot
2024/10/21 09:24:22 INFO: Backing up TSM for shard 4718
Error: failed to backup bucket data: failed to download snapshot of shard 4718: unexpected EOF