1.2.2 • Published 6 years ago

cleanuptool v1.2.2

Weekly downloads
-
License
ISC
Repository
-
Last release
6 years ago

CleanUp - A tool to help cleaning up after an Alexa Skill has served its purpose

As an Alexa Skills enthusiast, I am constantly creating skills to try out new features. Because of this, there is always a large number of skills, lambda functions and log groups that are left behind in my developer account.

I created this small script in order to help mitigate this issue. After creating, deploying, modifying, logging, breaking, fixing and breaking again (basic developer life, amirite??) all you have to do is execute this script in the skill's root folder. It will delete the skill, the lambda function associated with it and the logs associated with the lambda function. However, the files will still be in your local server, in case you wish to deploy the skill again.

The behavior explained above is the default one. This script has a set of options that will allow you to choose what to delete.

Installing

Via npm:

$ npm install cleanuptool

Usage

While in the skill's root folder (the folder that contains at least the folders lambda, models and the file skill.json, but mainly the hidden .ask folder), execute:

$ cleanUp

and your account will get cleared of the skill and it's appendages.

BUT WAIT!! That is not all! Let's say you only want to remove the skill, but leave the lambda function and the logs alone. All you have to do is use the -s flag followed by your skillID :

$ cleanUp -s [skillID]

There are 3 other flags:

  • -g functionName: this flag, followed by the functionName will delete the log groups associated with the function name;
  • -l functionName: this flag, followed by the functionName will delete the lambda function;
  • -h: this will print out a help message;
1.2.2

6 years ago

1.2.1

6 years ago

1.2.0

6 years ago

1.1.1

6 years ago

1.1.0

6 years ago

1.0.4

6 years ago

1.0.0

6 years ago