Deleting Files

You can use the J-Web interface to delete an individual file from the services router. When you delete the file, it is permanently removed from the file system.

Figure 17 shows the J-Web page on which you confirm the deletion of files.

Figure 17: Confirm File Delete Page

Confirm File Delete Page

To delete files with the J-Web interface:

  1. In the J-Web interface, select Maintain > Files.

    After you make changes to the configuration in this window, you must commit the changes immediately for them to take effect. To commit all changes to the active configuration, select Commit Options > Commit. See Using the Commit Options to Commit Configuration Changes (J-Web Procedure) for details about all commit options.

    When you use an HTTPS connection in the Microsoft Internet Explorer browser to save a report from this page in the J-Web interface, the error message "Internet Explorer was not able to open the Internet site" is displayed. This problem occurs because the Cache-Control: no cache HTTP header is added on the server side and Internet Explorer does not allow you to download the encrypted file with the Cache-Control: no cache HTTP header set in the response from the server.

    As a workaround, refer to Microsoft Knowledge Base article 323308, which is available at this URL: http://support.microsoft.com/kb/323308. Also, you can alternatively use HTTP in the Internet Explorer browser or use HTTPS in the Mozilla Firefox browser to save a file from this page.

  2. In the Download and Delete Files section, click one of the following file types:
    • Log Files—Lists the log files located in the /var/log directory on the device.
    • Temporary Files—Lists the temporary files located in the /var/tmp directory on the device.
    • Jailed Temporary Files (Install, Session, etc)—Lists the jailed temporary files located in the /var/jail/tmp directory on the device.
    • Old JUNOS Software—Lists the software images located in the (*.tgz files) in the /var/sw/pkg directory on the device.
    • Crash (Core) Files—Lists the core files located in the /var/crash directory on the device.

      The J-Web interface displays the files located in the directory.

    • Database files—Lists the database files located in the /var/db directory on the device.

      The J-Web interface displays the files located in the directory.

    The J-Web interface displays the files located in the directory.

  3. Check the box next to each file you plan to delete.
  4. Click Delete.

    The J-Web interface displays the files you can delete and the amount of space that will be freed on the file system.

  5. Click one of the following buttons on the confirmation page:
    • To delete the files and return to the Files page, click OK.
    • To cancel your entries and return to the list of files in the directory, click Cancel.