How to Clear Web.config Backup Files in Bulk

Follow
    Applies to:
  • Legacy SecureAuth IdP
Deployment model:
  • On Premises
  • SecureAuth version affected: All

    Description: SecureAuth stores each realm's unique configurations within a web.config file, dedicated to each realm. This file can be found within each realm's file directory--D:\Secureauth\SecureAuth#
    Whenever a configuration change is saved to a realm, through the Admin Console, SecureAuth saves a web.config backup file to that realm's file directory--D:\Secureauth\SecureAuth#\ConfigBackup
    This backup file stores the realm's configurations as they where before a change was made. Because these backup files are created upon each saved to a realm, they can pile up quick and take up a lot of hard drive space.



    **Warning: The primary web.config file is crucial to the functionality of each SecureAuth realm. If this file is deleted from any realm's file directory, the realm will break. Proceed at your own risk and pay close attention of the details below.

    These backup files can be selected and cleared in bulk by doing the following.
    - On the SecureAuth IdP server, open File Explorer and direct to the following directory: D:\Secureauth

    - In the search bar, in the top left corner of the window, search for the following wild card string:
    *-web.config: searches the current file directory for all backup -web.config files.

    This wild card search string will exclude the all currently used web.config files found in each realm's root file directory. Each backup file should begin with a integer value representing the date and time that the backup was created.
        - Format: YYYYMMDDHHMM-web.config, YearMonthDayHourMinute

    - Once the search completes, Ctrl+A can be used to select all files.
    - Press the Delete keyboard key, or right-click and select Delete, to remove all found web.config backup files from the IdP server.

    0 out of 0 found this helpful

    Comments

    0 comments

    Please sign in to leave a comment.