Once you have shared a tree with someone, you cannot unshare it with them, although if they are allowed to edit the tree, their editing powers will be more limited than your own.
You may want to consider creating a backup copy of your tree, just in case.