If you mean the "My Workspaces" node in the Team Artifacts view., you have two options to remove an entry, as far as I know:
-
Delete the repository workspace
-
Change the owner of the repository workspace
Why would you want to use the API? Which option would you prefer?