Disable trash bin in Files 

Change an attribute in the configuration properties to disable the trash bin in Files. It is enabled by default.


Before starting

To edit configuration files, use the IBM WAS wsadmin client. See Starting the wsadmin client for information about how to start the wsadmin command-line tool.


About this task

Perform the following steps to disable trash bin in Files:


Procedure

  1. Start the wsadmin client.

  2. Start the Files Jython script interpreter.

    1. Access the Files configuration files:

        execfile("filesAdmin.py")

        If you are asked to select a server, you can select any server.

    2. Check out the Files configuration files using the following command:

        FilesConfigService.checkOutConfig("<working_directory>", "<cell_name>")

        where:

        • <working_directory> is the temporary working directory to which the configuration XML and XSD files are copied. The files are kept in this working directory while you make changes to them.

            Note: AIX and Linux™ only: The directory must grant write permissions or the command will not run successfully.

        • <cell_name> is the name of the WAS cell hosting the IBM Connections application. This argument is required. If you do not know the cell name, you can determine it by typing the following command in the wsadmin command processor:

            print AdminControl.getCell()

        For example:

        FilesConfigService.checkOutConfig("/opt/my_temp_dir", "CommServerNode01Cell")

  3. Open files-config.xml.

  4. In the <personalFiles> element in the <recyclebin> section, specify the enabled attribute as false.

Example

For example:

 ....
 <recyclebin>
  <personalFiles enabled="false"/>
 </recyclebin>
....

Related reference
Files configuration properties


   

 

});

+

Search Tips   |   Advanced Search