I’m trying but I keep getting 400 errors. I’m just posting the raw bytes of these strings through C# "db=raw&q=drop measurement \"Cal_Eye.Device.S1.Press\"" "db=raw&q='drop measurement \"Cal_Eye.Device.S1.Press\"'"
Is this supposed to be multipart? I can’t find anything about the post API on the Influx site. If you go to the query section it just shows the get API. The only thing I can find about post on there is writing data, which is a completely different format.
There are several curl examples using POSTin the documentation. Using those examples and the --trace-ascii flag to curl, you can see that the POST request has content-type application/x-www-form-urlencoded. E.g., for the “drop measurement” command, the request looks like:
If you’re making the same request and getting back a 400 error, the first place to look would be in the influxdb server logs to see if there was anything useful.
Thanks, I figured it out - I wasn’t setting the content type in the post request. I fixed that and it went through without the 400 error. I got the following response: {"results":[{"statement_id":0}]}
But there still seems to be a bug - despite the fact that it was deleted, the measurement still shows up when I run “SHOW MEASUREMENTS”
And when I try to delete it again, it confirms that the measurement doesn’t exist: {"results": [{"statement_id": 0, "error": "measurement not found: Cal_Eye.Device.S1.Press" }]}
The act of dropping them does clear them out, but it doesn’t seem to get rid of the measurement itself… So I have no clue how to get rid of these measurements right now…