GitHub user trevordowdle added a comment to the discussion: Unsubscribe subscription [Rest API] working?
Thank you for your response. I am using the rest api, here is a sample of the end point: "DELETE" request to: http://pulsar-test.com:8080/admin/v2/namespaces/test/ingest/test/subscription/subscription-message-save Result: statusText = 'Not Found' status = 404 Running: pulsar-admin topics stats persistent://test/ingest/test show the subscription still active. ``` "subscriptions" : { "subscription-message-save" : { "msgRateOut" : 0.0, "msgThroughputOut" : 0.0, "bytesOutCounter" : 0, "msgOutCounter" : 0, "msgRateRedeliver" : 0.0, "chuckedMessageRate" : 0, "msgBacklog" : 0, "backlogSize" : 0, "msgBacklogNoDelayed" : 0, "blockedSubscriptionOnUnackedMsgs" : false, "msgDelayed" : 0, "unackedMessages" : 0, "type" : "Exclusive", "msgRateExpired" : 0.0, "totalMsgExpired" : 0, "lastExpireTimestamp" : 0, "lastConsumedFlowTimestamp" : 1662056861336, "lastConsumedTimestamp" : 0, "lastAckedTimestamp" : 0, "lastMarkDeleteAdvancedTimestamp" : 0, "consumers" : [ ], "isDurable" : true, "isReplicated" : false, "consumersAfterMarkDeletePosition" : { }, "nonContiguousDeletedMessagesRanges" : 0, "nonContiguousDeletedMessagesRangesSerializedSize" : 0 } }, ``` What works: "Post" request to http://pulsar-test.com:8080/admin/v2/namespaces/test/ingest/unsubscribe/subscription-message-save Result: statusText = 'No Content' status = 204 Running: pulsar-admin topics stats persistent://test/ingest/test shows the subscription has been successfully removed. `"subscriptions" : { },` GitHub link: https://github.com/apache/pulsar/discussions/17379#discussioncomment-3529738 ---- This is an automatically sent email for dev@pulsar.apache.org. To unsubscribe, please send an email to: dev-unsubscr...@pulsar.apache.org