Delete Subscription
Purpose
Deletes a specified durable subscription.URI
Use the Eclipse Amlen REST API DELETE method with the following Eclipse Amlen service URI:
http://<admin-endpoint-IP:Port>/ima/v1/service/Subscription/<clientID>/<SubName> 
where 
  - clientID
 - Specifies the client ID associated with the subscription that you want to delete.
 - SubName
 - Specifies the name of the durable subscription that you want to delete.
 
Usage NotesĀ®
- The command must be capitalized as shown.
 - When you use this command to remove a durable subscription, all buffered messages associated with the subscription are also deleted.
 - To remove multiple subscriptions, you must submit multiple delete requests.
 - You must have manage authority to remove a subscription.
 
Example
Deletes a subscription calledDemoSubscription that has an associated clientID called exampleClient:curl -X DELETE http://127.0.0.1:9089/ima/v1/service/Subscription/exampleClient/DemoSubscriptionExample response to the DELETE method:
{                  
    "Version": "v1",          
    "Code": "CWLNA6011",          
    "Message": "The requested configuration change has completed successfully."        
}