Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

permanently delete a folder

Tags:

svn

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:

  • Do an SVN dump of all revisions and restore it locally
  • "Delete" all data in the hosted SVN (How do I even do that?)
  • And then sync the revisions on a per folder basis where I exclude the folder in question. I have imported revision history based on folders in the past so I know this is possible.

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.

like image 263
BlueVoodoo Avatar asked Jul 06 '12 13:07

BlueVoodoo


People also ask

How do I permanently delete a folder in Windows 10?

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.

Are permanently deleted files really deleted?

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.

How do I permanently delete files from my computer without recovery?

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.

How can I delete files from my computer permanently?

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.


1 Answers

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).

like image 72
hamstergene Avatar answered Oct 27 '22 00:10

hamstergene