# Remove Grafana License (10.1.2)

**URL:** <https://community.grafana.com/t/remove-grafana-license-10-1-2/129024>\
**Category:** Grafana\
**Tags:** licensing\
**Created:** [August 20, 2024, 7:14am UTC](https://community.grafana.com/t/remove-grafana-license-10-1-2/129024 "2024-08-20T07:14:18Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![gtpgrafana](https://avatars.discourse-cdn.com/v4/letter/g/f08c70/32.png) [@gtpgrafana](https://community.grafana.com/u/gtpgrafana)\
**Post date:** [August 20, 2024, 7:14am UTC](https://community.grafana.com/t/remove-grafana-license-10-1-2/129024/1 "2024-08-20T07:14:18Z")

</div>

> **[Licensing HTTP API | Grafana documentation](https://grafana.com/docs/grafana/latest/developers/http_api/licensing/#remove-license-from-database)**
>
> Enterprise Licensing HTTP API

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”:“”}

---

<div class="post-metadata">

**Author:** ![ebabeshko](https://avatars.discourse-cdn.com/v4/letter/e/9d8465/32.png) [@ebabeshko](https://community.grafana.com/u/ebabeshko)\
**Post date:** [August 20, 2024, 3:06pm UTC](https://community.grafana.com/t/remove-grafana-license-10-1-2/129024/2 "2024-08-20T15:06:59Z")

</div>

> [@gtpgrafana](#):
>
> curl -X “DELETE” -H “Authorization:Bear [TOKEN]” “http://[URL]:3000/api/licensing/token”  
> {“message”:“bad request data”,“traceID”:“”}

Try `Bearer` instead of `Bear`, is that a typo?

---

<div class="post-metadata">

**Author:** ![yosiasz](https://sea2.discourse-cdn.com/grafana/user_avatar/community.grafana.com/yosiasz/32/45847_2.png) [@yosiasz](https://community.grafana.com/u/yosiasz)\
**Post date:** [August 20, 2024, 3:30pm UTC](https://community.grafana.com/t/remove-grafana-license-10-1-2/129024/3 "2024-08-20T15:30:37Z")

</div>

🐻 🐼 cute but would definitely not work. 😆

---

<div class="post-metadata">

**Author:** ![gtpgrafana](https://avatars.discourse-cdn.com/v4/letter/g/f08c70/32.png) [@gtpgrafana](https://community.grafana.com/u/gtpgrafana)\
**Post date:** [August 20, 2024, 11:38pm UTC](https://community.grafana.com/t/remove-grafana-license-10-1-2/129024/4 "2024-08-20T23:38:45Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![gtpgrafana](https://avatars.discourse-cdn.com/v4/letter/g/f08c70/32.png) [@gtpgrafana](https://community.grafana.com/u/gtpgrafana)\
**Post date:** [August 21, 2024, 12:12am UTC](https://community.grafana.com/t/remove-grafana-license-10-1-2/129024/5 "2024-08-21T00:12:22Z")

</div>

> [@yosiasz](#):
>
> cute but would definitely not work

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

---

<div class="post-metadata">

**Author:** ![yosiasz](https://sea2.discourse-cdn.com/grafana/user_avatar/community.grafana.com/yosiasz/32/45847_2.png) [@yosiasz](https://community.grafana.com/u/yosiasz)\
**Post date:** [August 21, 2024, 1:03am UTC](https://community.grafana.com/t/remove-grafana-license-10-1-2/129024/6 "2024-08-21T01:03:46Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![gtpgrafana](https://avatars.discourse-cdn.com/v4/letter/g/f08c70/32.png) [@gtpgrafana](https://community.grafana.com/u/gtpgrafana)\
**Post date:** [August 21, 2024, 5:25am UTC](https://community.grafana.com/t/remove-grafana-license-10-1-2/129024/7 "2024-08-21T05:25:59Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![yosiasz](https://sea2.discourse-cdn.com/grafana/user_avatar/community.grafana.com/yosiasz/32/45847_2.png) [@yosiasz](https://community.grafana.com/u/yosiasz)\
**Post date:** [August 21, 2024, 5:54am UTC](https://community.grafana.com/t/remove-grafana-license-10-1-2/129024/8 "2024-08-21T05:54:23Z")

</div>

what do you see in this table?

![image](https://us1.discourse-cdn.com/grafana/original/3X/3/b/3b73385626402ec54339b8bd8a44723c478a66ad.png)

---

<div class="post-metadata">

**Author:** ![gtpgrafana](https://avatars.discourse-cdn.com/v4/letter/g/f08c70/32.png) [@gtpgrafana](https://community.grafana.com/u/gtpgrafana)\
**Post date:** [August 21, 2024, 6:40am UTC](https://community.grafana.com/t/remove-grafana-license-10-1-2/129024/9 "2024-08-21T06:40:20Z")

</div>

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](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](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](http://xx.x.x.xx:3000/%22,%22iat%22:172xxx,%22exp%22:172xxxx,%22nbf%22:1693xxxx3,%22lexp%22:172xxxx0,%22lid%22:%22549xxz%22,%22limit_by%22:%22users%22,%22included_users%22:60,%22lic_exp_warn_days%22:30,%22tok_exp_warn_days%22:2,%22update_days%22:1,%22prod%22:%5B%22grafana-enterprise%22%5D,%22company%22:%22xx%22,%22account%22:%22%22,%22slug%22:%22xx%22,%22usage_billing%22:false,%22max_concurrent_user_sessions%22:3,%22details_url%22:%22%22,%22trial%22:false,%22trial_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

---

<div class="post-metadata">

**Author:** ![yosiasz](https://sea2.discourse-cdn.com/grafana/user_avatar/community.grafana.com/yosiasz/32/45847_2.png) [@yosiasz](https://community.grafana.com/u/yosiasz)\
**Post date:** [August 21, 2024, 12:59pm UTC](https://community.grafana.com/t/remove-grafana-license-10-1-2/129024/10 "2024-08-21T12:59:13Z")

</div>

> [@gtpgrafana](#):
>
> cannot be installed

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