Hi All,

Thanks for all the replies.

@Roshan

We can't remove subscriptions by going to the Application, Application only
lists logged in users subscriptions.

@Lakshman/Bhathiya/Chamin

Yes, I understand we can achieve delete API following these steps. But
those are actually workarounds.

Why don't we allow API publish user to delete subscriptions to that API ?
So he can delete the API after removing subscriptions.
Even at some situations, API Published user("userPub") may want to remove
subscriptions selectively.I don't see a way to do that as well.



On Thu, Jul 7, 2016 at 4:22 PM, Chamin Dias <[email protected]> wrote:

> Hi,
>
> Change the lifecycle to "Block"
> Then existing users (already who subscribed) cannot use the API, also new
> users are not able to subscribe to the blocked API.
> In this state also, you are not allowed to delete the API form the API
> publisher since there is a subscriber.
>
> If you want to delete the API, you can do the following.
> Change the lifecycle to "Deprecate"
> After that, Change the lifecycle to "Retire".
> Then go the home page of the API publisher, locate the API then you will
> see that there are "0 users" with the API. Now you should be able to delete
> the API.
>
> Thanks.
>
> On Thu, Jul 7, 2016 at 4:17 PM, Bhathiya Jayasekara <[email protected]>
> wrote:
>
>>
>> On Thu, Jul 7, 2016 at 3:43 PM, Asanka Vithanage <[email protected]>
>> wrote:
>>
>>> Hi All,
>>>
>>> Using API Publisher and Store, I am trying to achieve the $Subject. But
>>> it seems via current store and publisher UIs, we can't do that.
>>>
>>> Let's think we create two users called userPub and userSub with only
>>> login and Manage permissions.
>>> Then "userPub" login to the API Publisher and create/Publish an API.
>>> Then "userSub" login to the API Store and subscribe to the above  API.
>>> Now "userPub" want to the delete the API, But Publisher does not allow
>>> to delete the API due to the subscriptions.
>>> Now the question is how do delete the subscriptions, Though I logged to
>>> store with user "userPub" I can't find a way to remove the subscription.
>>> So, as a result, I can't figure out a way to delete the API.
>>>
>>> Do we have a way to delete the API in this kind of situation? Appreciate
>>> your thoughts.
>>>
>>
>> You can demote to created and then delete.
>>
>> Thanks,
>> Bhathiya
>>
>>
>>>
>>>
>>> --
>>> Asanka Vithanage
>>> Senior Software Engineer -QA
>>> Mobile: +94 0716286708
>>> Email: [email protected]
>>> WSO2 Inc. www.wso2.com
>>>
>>>
>>
>>
>> --
>> *Bhathiya Jayasekara*
>> *Senior Software Engineer,*
>> *WSO2 inc., http://wso2.com <http://wso2.com>*
>>
>> *Phone: +94715478185 <%2B94715478185>*
>> *LinkedIn: http://www.linkedin.com/in/bhathiyaj
>> <http://www.linkedin.com/in/bhathiyaj>*
>> *Twitter: https://twitter.com/bhathiyax <https://twitter.com/bhathiyax>*
>> *Blog: http://movingaheadblog.blogspot.com
>> <http://movingaheadblog.blogspot.com/>*
>>
>> _______________________________________________
>> Dev mailing list
>> [email protected]
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Chamin Dias
> *Software Engineer*
> Mobile : +94 (0) 716 097455 <%2B94%20%280%29%20773%20451194>
> Email : [email protected]
> Blog : https://chamindias.wordpress.com/
>



-- 
Asanka Vithanage
Senior Software Engineer -QA
Mobile: +94 0716286708
Email: [email protected]
WSO2 Inc. www.wso2.com
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to