Developer
News and Updates
Get Support
Sign in
Get Support
Sign in
DOCUMENTATION
Cloud
Data Center
Resources
Sign in
Sign in
DOCUMENTATION
Cloud
Data Center
Resources
Sign in
Last updated Nov 24, 2026

Delete the limit of an account

What this tutorial covers

Use this tutorial to delete a limit for an account, and confirm that the account’s existing usage still counts.

You’ll work with the Rovo credits meter in this tutorial.

Deleting an active account’s limit removes its individual limit. It does not block the account, deactivate it, or remove access. An account that still has access can continue consuming credits, subject to the organization’s limit, if one is set, and Atlassian system limits.

For more details on meters and usage, see What is Platform usage?

For full technical details of available operations, see the meters API.

What this tutorial doesn’t cover

This tutorial does not cover:

  • Identifying which accounts have left the organization.

Before you begin

You need all of the following:

PlaceholderReplace it with
{orgId}Your organization ID
{meterId}The ID of a meter that supports limits (see Find the Rovo credits meter ID)
{accountId}An Atlassian account ID (for example, a user or a service account)
<api_key>Your organization API key

Authentication reminder

An API token is not an API key.

  • API key: send it in Authorization: Bearer <api_key>.
  • API token: used with basic authentication; it is not the credential used in this tutorial.

This tutorial uses an organization API key as a Bearer token.

Keep the API key out of source code and version control.

Step 1: Find the Rovo credits meter ID

Follow the steps in Find the Rovo credits meter ID if you haven’t already made a copy of your meter ID. Do not continue if the meter does not support limits.

Step 2: Specify the account and delete its limit

You can delete a limit for an account with the operation: DELETE /admin/v1/orgs/{orgId}/meters/{meterId}/limits/{accountId}

The API doesn’t identify which accounts have left your organization. Start with a trusted account ID, such as one from your offboarding list.

  1. Copy and paste the following request into a local plain-text editor.
1
2
3
4
5
curl --request DELETE \
  --url "https://api.atlassian.com/admin/v1/orgs/{orgId}/meters/{meterId}/limits/{accountId}" \
  --header "Authorization: Bearer <api_key>" \
  --header "Accept: application/json"
  1. Replace every placeholder in the URL and headers: {orgId}, {meterId}, {accountId}, and <api_key>.
  2. Import the updated curl command into your API client, or paste it in your terminal.
  3. Send the DELETE request.

Step 3: Interpret the response status

Use this table to interpret the response to your DELETE request.

ResponseMeaningWhat to do
204The limit was deleted. The response has no body.Continue to Step 4 to confirm the account’s usage.
400 with invalid-accountThe account ID is malformed.Check {accountId} and send the request again.
400 with limits-not-supportedThis meter does not support limits.Check {meterId} and use a meter that supports limits.
404 with limit-not-foundThe account has no limit. A previous delete request might have succeeded, and this might be a safe retry. Either way, no limit remains.Continue to Step 4 to confirm the account’s usage.
404 with meter-not-foundThe meter is not provisioned for the organization or has been deactivated.Check {meterId} and use an active meter for your organization.
429The organization has sent too many requests.Wait before retrying. If the response includes X-Retry-After, wait that long first.
500 with internal-errorAn unexpected error occurred.Retry later. If it keeps happening, contact support.
503 with service-unavailableThe request couldn't be served right now. The deletion might still have succeeded.Wait a short time before retrying. A 404 with limit-not-found on retry means no limit remains.

Step 4: Confirm the account’s usage

You can read the account’s usage with the operation: GET /admin/v1/orgs/{orgId}/meters/{meterId}/usage/{accountId}

  1. Copy and paste the following request into a local plain-text editor.
1
2
3
4
5
curl --request GET \
  --url "https://api.atlassian.com/admin/v1/orgs/{orgId}/meters/{meterId}/usage/{accountId}" \
  --header "Authorization: Bearer <api_key>" \
  --header "Accept: application/json"
  1. Replace every placeholder in the URL and headers: {orgId}, {meterId}, {accountId}, and <api_key>.
  2. Import the updated curl command into your API client, or paste it in your terminal.
  3. Send the GET request.

The response contains a data object. For example:

1
2
3
4
5
6
7
8
9
10
{
  "data": {
    "accountId": "5b10ac8d82e05b22cc7d4ef5",
    "limit": null,
    "usage": 250,
    "balance": null,
    "usageState": "WITHIN_LIMIT"
  }
}

Check that limit and balance are null. If the previous limit still appears, wait a few seconds and send the GET request again. The successful DELETE response confirms the deletion.

The GET request you just ran doesn't check whether the account exists. A correctly formatted account ID that doesn't belong to an existing account still returns usage: 0, limit: null, and balance: null. These values alone do not confirm that the account exists or that a limit was deleted.

Any usage from the current cycle still appears because it counts against the organization’s allowance and billing.

For more examples and details, see the meters API documentation.

Rate this page: