I am aware that the whole point of SVN is to never be able to delete anything permanently and my question is not about a "permanent delete" feature or similar.
It has come to my attention that code has been committed to our SVN repo by accident. It's code that belongs to another company and before there are any legal implications, I need to work out a way to remove this code permanently, including all traces of it ever being there.
Note 1: there has been other code revisions since.
Note 2: all the code that needs to be removed is contained under one folder
Note 3: the SVN is hosted with a third party in the cloud (Atlassian).
The way I am thinking now is:
If there isn't any easier way, how do I delete / empty an entire SVN server or create a new one to replace the current one? Again, since our SVN is hosted with a third party, I can't access the file structure of the server itself but need to rely on SVN commands.
Type “powershell” in the Start Menu at the bottom of your screen. Press Enter if Windows PowerShell is highlighted, or click the option for Windows PowerShell. Type Remove-Item -path c:\[Filename] -recurse and press Enter. This will delete everything in the folder, including any files and folders inside that folder.
It is not technically "deleted." Although the operating system can't find it anymore, a copy of it is still accessible through your hard drive. Depending on your hardware, the data stored on your hard drive can either remain intact or in smaller pieces if a user tries to retrieve them after some time.
Right-click on the Recycle Bin and choose "Properties". Select the drive for which you want to delete the data permanently. Check the option "Don't move files to the Recycle Bin. Remove files immediately when deleted." Then, click "Apply" and "OK" to save the settings.
To delete the selected file(s) without moving to the Recycle Bin, press SHIFT+Delete on your keyboard. This action permanently deletes the selected file(s), and Windows 10 asks for confirmation before it goes ahead with the removal. When you are asked "Are you sure you want to permanently delete this file?", press Yes.
svndumpfilter is a command-line utility for removing history from a Subversion dump file by either excluding or including paths beginning with one or more named prefixes.
Basically you need to make a complete dump of repository, filter unwanted folders out of it, and import the rest as new repository. But since your repository is hosted by third party, I guess you need to arrange that kind of repository access first (unless they already provide some interface for that).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With