Whenever you decide to stop using a key set, so it does not generate any network transactions and incur costs, you should first log in to your PubNub Admin Dashboard and disable it by clicking the Disable button.
Disabling a key set in your dashboard prevents users from making successful publish/subscribe requests as they would result in an error. Nevertheless, keep in mind that error transactions are also included in usage as well as billing.
Important!
A crucial step to remember in order to stop a key set from generating usage data and increasing your costs is to remove the key set details from your codebase.
In case of any questions, contact us at support@pubnub.com