I assume you are using Git.
Here's how Git works. When you "clone" a repository from a remote (such as bitbucket or github), you get a copy of the entire repository on your local machine. If your access to that remote is revoked - the local repository doesn't care. You've successfully prevented him from sabotaging your code, but there is nothing you can do technologically to prevent him from "stealing" code he previously had access to.
As far as legal recourse, you should consult a lawyer in your jurisdiction.
Bitbucket Pipelines helps me manage and automate a number of serverless deployments to AWS Lambda and this is how I do it. I'm building Node.js Lambda functions using node-lambda ...
Connect with like-minded Atlassian users at free events near you!Find a group
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG
We're bringing product updates and pro tips on teamwork to ten cities around the world.Save your spot