All Products
Search
Document Center

ApsaraMQ for RabbitMQ:Cancelling a subscription

Last Updated:Oct 09, 2026

The cancellation process and refund rules for ApsaraMQ for RabbitMQ depend on the billing method: subscription (prepaid) or pay-as-you-go (Serverless).

Before you cancel

Before you cancel or release an instance, take the following steps to avoid data loss:

  • Back up your data. Export any messages, configurations, or metadata (vhosts, exchanges, and queues) that you still need. Instance data cannot be recovered after cancellation.

  • Update your applications. Remove or redirect any producers and consumers that connect to the instance.

  • Check outstanding orders. Review any pending or unpaid orders associated with the instance in Expenses and Costs.

Subscription instances

Refund rules

Subscription cancellations are eligible for a partial refund. The refund is calculated based on the unused portion of your subscription:

Refund amount = Actual amount paid for the order - Cost of used resources

The system calculates the cost of used resources based on the actual usage duration and refunds the remaining balance.

For detailed refund rules and calculation examples, see Unsubscription rulesRules for unsubscribing from resources.

Before you cancel and repurchase a subscription instance, note the following:

  • Discounts are not retained. If you cancel a subscription instance and purchase a new one, the discounts from the original order are not automatically applied to the new order. Any coupons that were issued with the refund become invalid and are cleared.

  • You cannot change the zone of an existing instance. If you selected the wrong zone when you purchased the instance, you must cancel it and purchase a new instance in the correct zone.

  • Back up your data before you cancel. Make sure that you have backed up any data you still need before you proceed. After the refund is processed, the invoiceable amount for your account is reduced accordingly.

Cancel a subscription instance

  1. Go to the Refund Management page in Expenses and Costs.

  2. Select the Partial Refund type.

  3. Find the ApsaraMQ for RabbitMQ instance that you want to cancel.

  4. Click Unsubscribe Resource in the Actions column.

  5. Follow the prompts to complete the unsubscription.

Refund destination

For details about where refunds are sent, see Refund destinationsRefund flow.

Serverless instances

Refund rules

Serverless instances use pay-as-you-go billing, so refunds do not apply. You are charged only for the resources consumed up to the point of release.

Release a Serverless instance

Important

Releasing an instance permanently deletes all its metadata (vhosts, exchanges, and queues) and message data. This action cannot be undone.

  1. Open the ApsaraMQ for RabbitMQ console.

  2. In the top menu bar, select a region. In the left navigation pane, click Instances.

  3. On the Instances page, find the instance that you want to release.

  4. In the Actions column, choose image > Delete.

FAQ

Why does a released or cancelled subscription instance still appear in the console list?

This is usually caused by a delay in console statistics. If the instance status shows Released, the resources and data of the instance have already been cleaned up. Refresh the page or check back later. If the instance still appears in the list after a long time, click the Delete button in the Actions column of the instance list to remove it manually.

Does ApsaraMQ for RabbitMQ support releasing an instance through OpenAPI?

No. ApsaraMQ for RabbitMQ does not currently provide an OpenAPI operation for releasing instances. The available instance management API operations support only creating instances, querying instance information, and updating the instance specification or name. To release or cancel an instance, use the console.

See also