Delete a key value store
You can delete your key value store by using the Amazon CloudFront console or API.
- Console
-
To delete a key value store
-
Sign in to the Amazon Web Services Management Console and open the Functions page in the CloudFront console at https://console.amazonaws.cn/cloudfront/v4/home#/functions
. -
Choose the function name.
-
Under the Associated KeyValueStore section, verify if a key value store is associated with the function. If it is, remove the association by choosing Disassociate KeyValueStore and then choose Remove association.
-
In the navigation pane, choose the Functions page and then choose the KeyValueStores tab.
-
Select the key value store that you want to delete and then choose Delete.
-
- Programmatically
-
To delete a key value store
-
Get the ETag and the name of the key value stores. For more information, see Get a reference to a key value store.
-
Verify if the key value stores is associated with a function. If it is, remove the association. For more information on both these steps, see Update functions.
-
To delete the key value store, use the CloudFront DeleteKeyValueStore API operation.
-