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 AWS Management Console and open the Functions page in the CloudFront console at https://console.aws.amazon.com/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.
-
- AWS CLI
-
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.
-
After you have the name and
ETag
of the key value store and it's no longer associated with a function, you can delete it.Run the following command to delete the specified key value store.
aws cloudfront delete-key-value-store \ --name=keyvaluestore1 \ --if-match=E3UN6WX5RRO2AG
-
- API
-
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.
-