in scripts/lua/lib/dataStore.lua [227:240]
function DataStore:deleteSubscriptionAdv(artifactId, tenantId, clientId)
local subscriptionKey = utils.concatStrings({"subscriptions:tenant:", tenantId, ":api:", artifactId})
local key = utils.concatStrings({subscriptionKey, ":key:", clientId})
if self:exists(key) == 1 then
self:deleteSubscription(key)
else
local pattern = utils.concatStrings({subscriptionKey, ":clientsecret:" , clientId, ":*"})
local res = self.impl.cleanSubscriptions(self.ds, pattern)
if res == false then
return false
end
end
return true
end