When a translation memory is removed from a project, the local TM file is retained in the TM folder on your computer and can be added again by clicking on Add Local. The remote TM can be added again by clicking on Connect to Remote and entering the URL.
To remove a translation memory from the current project: