HOWTO: Recover Disk Space in Visual SourceSafe

Last reviewed: March 24, 1997
Article ID: Q153500
The information in this article applies to:
  • Microsoft Visual SourceSafe, 16-bit and 32-bit, for Windows 95, versions 4.0, 5.0

SUMMARY

When a file is deleted in Visual SourceSafe, the file is still held in the SourceSafe database; it is simply marked for deletion. The files marked for deletion are still taking up space on the disk and are still available to be recovered.

MORE INFORMATION

There are several ways to recover disk space in Visual SourceSafe:

  • Select the Destroy Permanently check box when deleting a file to completely remove it from the database.

    -or-

  • Use the Visual SourceSafe Purge command from the Command window or from within Visual SourceSafe Explorer.

    -or-

  • Use Analyze.exe with the -c and -d switches. Do not use these switches together. Run analyze twice, once with each switch . However, use this with extreme caution. Note that this applies to versions of Analyze.exe dated 1/9/96 or later. If you have an earlier version, please see the following article in the Microsoft Knowledge Base for further information:

    ARTICLE_ID: Q139566

       TITLE     : SAMPLE: ANALYZE5.EXE Utility for Visual SourceSafe
    
    

Step-by-Step Example

Delete with the Destroy Permanently option:

  1. In SourceSafe Explorer, select the desired file or project, and press the DELETE key.

  2. Select the Destroy Permanently check box, and click OK. The file or project is no longer recoverable.

Purge option:

  1. In SourceSafe Explorer, right-click the Project, and select the Properties option.

  2. Select the Deleted Items tab. If any files are deleted in that project, the Purge button will be available.

Analyze -C option:

  1. First and foremost, back up the database. At the command line, change to the \win32 directory where ANALYZE.EXE resides.

  2. Type Analyze <path to data directory> -C at the command line and allow some time for this to run.

NOTE: You may also want to run analyze with the -d switch as suggested in the Knowledge Base Article Q139566: ANALYZE5.EXE Utility for Visual SourceSafe 4.0, referenced above.

NOTE: Be sure that there is plenty of free hard disk space, back up, and allow a lot of time with this method.


Keywords : kbusage ssafe vss
Version : 4.0 5.0
Platform : WINDOWS
Issue type : kbhowto


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: March 24, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.