We can teardown the stack we just created by running:
npx cdk destroy
CDK will prompt you to confirm that you'd like to destroy your stack:
y <enter> will confirm that you want to destroy your stack.
You will see the status update as the stack resources are deleted.
Once everything has been deleted, you should get a confirmation that your stack has been destroyed:
Cleaning up development stacks is good practice to avoid running into resource limits and to ensure your stack is deployable from scratch.
We've only scratched the surface of what you can build with Functionless and we're hard at work adding new functionality on a weekly basis.
You can read more about the Step Function and Function Constructs we used in this guide in our concepts documentation. This is also a good place to learn about other Constructs and features that were not included in this guide.