Deleting source code and or the whole repository.
One answer
Can you clarify what you mean by "repository"? If it's a repository workspace, that can be deleted but it deletes the workspace configuration. Another workspace can be created with that configuration so the source code isn't gone forever.
You can also discard the change sets that shared the source code and it will be gone from the repository workspace. Or you can load the source code and delete it then check-in the deletion.
If you want to permanently delete the source code from the server, you can use content delete. This will delete it and cannot be recovered.
There are many ways to get rid of the source code that was shared but I'm not quite sure what kind of deletion you want.
You can also discard the change sets that shared the source code and it will be gone from the repository workspace. Or you can load the source code and delete it then check-in the deletion.
If you want to permanently delete the source code from the server, you can use content delete. This will delete it and cannot be recovered.
There are many ways to get rid of the source code that was shared but I'm not quite sure what kind of deletion you want.