question

NiceToMytyuk avatar image
NiceToMytyuk asked

How to delete persistent attributes?

I have an Alexa-Hosted skill which register attributes in persistent attributes, but as i'm testing the skill for now i need to delete the saved attributes as it's save a unique code for the user, how can i delete or clear the persistent attributes?


for set attributes i use

attributesManager.setPersistentAttributes(sessionAttributes);
attributes
10 |5000 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

Kinisoftware avatar image
Kinisoftware answered

Hi @NiceToMytyuk ! :)


It depends on the persistence connector you are using. For skills it should be S3 or DynamoDB. You should be able to access to your persistent attributes in the persistence layer (bucket or table) and remove them from it.


I guess you already know this but, by code, you have a method in the attributesManager for it

attributesManager.deletePersistentAttributes();


Hope I was able to help you :)

10 |5000 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.