Remove Grafana License (10.1.2)

When I try to remove the license by referring to the above document, I get the following error, please advise me what is wrong.

curl -X “DELETE” -H “Authorization:Bearer [TOKEN]” “http://[URL]:3000/api/licensing/token”
{“message”:“bad request data”,“traceID”:“”}

Try Bearer instead of Bear, is that a typo?

1 Like

:bear: :panda_face: cute but would definitely not work. :laughing:

There was a typo in the text!:smiling_face_with_tear: I used it as a Bearer, but the same error occurs.
What could be the problem?

Are there any other commands that can only remove licenses from grafana.db?

no, because that is not recommended. but that said what is your grafana backend and is it self hosted?

Thank you for your reply.
Grafana installed it on its own Windows server, not on the cloud.

what do you see in this table?

image

It seems that SQLite cannot be installed because it is an actual customer environment, so I will inform you of the results below.


curl -X GET
-H “Accept: application/json”
-H “Authorization: Bearer [TOKEN]”
http://URL:PORT/api/licensing/check


When I call it like above, it comes out as true, and when I entered following command, it reads the license information well.


curl -H “Authorization:Bearer [TOKEN]” “http://[URL:PORT]/api/licensing/token”
(ex. {“status”:1,“jti”:“17121xxx”,“iss”:“https://grafana.com”,“sub”:“http://xx.x.x.xx:3000/“,“iat”:172xxx,“exp”:172xxxx,“nbf”:1693xxxx3,“lexp”:172xxxx0,“lid”:“549xxz”,“limit_by”:“users”,“included_users”:60,“lic_exp_warn_days”:30,“tok_exp_warn_days”:2,“update_days”:1,“prod”:[“grafana-enterprise”],“company”:“xx”,“account”:”“,“slug”:“xx”,“usage_billing”:false,“max_concurrent_user_sessions”:3,“details_url”:”",“trial”:false,"trial_exp”:0}


When I deleted, I entered the following command, but I entered the value for instance as the Grafana URL, is this the wrong value?
I was wondering if the value I enter into my instance is the Grafana URL I type into my browser. If not, is there a way to check it separately?

curl -X DELETE
-H “Accept: application/json”
-H “Content-Type: application/json”
-H "[TOKEN]
-d ‘{“instance”: “http://
[URL:PORT]”}’
http://[URL:PORT]/api/licensing/token

install sqlite? i don see anyone suggesting you do that. you asked about grafana.db and that is what was being referred to.