Home

 

Delete user files from the system

Use the FilesLibraryService delete commands to delete user files. This topic focuses on deleting the files of users who have been removed from the Lotus Connections user When the user update task runs it recognizes users missing from the directory, and marks their libraries as orphans. However, you can delete anyone's files.

In the Files database context, a library is a set of files owned by a person or community. However, you should delete community libraries following steps in the topic Deleting orphaned data.

  1. Start the wsadmin client.

  2. Start the Files script with the following command:

  3. Network deployment:

      execfile("profile_root/config/bin_lc_admin/ filesAdmin.py")
      

  4. Optional: Run this command to find out the total number of libraries whose owners were removed from LDAP:

      FilesLibraryService.getPersonalOrphanCount
      

  5. Optional: Run this command to return a list of personal libraries whose owners were removed from the LDAP directory:

      FilesLibraryService.browsePersonalOrphan(sortOption, sortAscending, pageNumber, itemsPerPage)
      

    where the sortOption parameter is a String value that specifies how to sort the list. The default value is title, but you can use

    lastUpdate

    ,

    size

    ,

    createDate

    , or

    quotaPercentage

    The sortAscending parameter is a String value that specifies whether the list sorts in ascending alphabetical order. This depends on sortOption. If sortOption is title, then this value is true

    ; if sortOption any other value, then this value is

    false

    The pageNumber parameter is the number of the page to return. For example, if the itemsPerPage value is 40, and pageNumber value is 2, the command returns items 41 to 80 (page 2) instead of 1 to 40 (page 1).

    The itemsPerPage parameter is the maximum number of policies to list per page. The default value is 20.

    To print the results of this command to a text file, see the topic Printing information returned by commands.

  6. Run one of these commands to delete libraries:

    • Run this command to delete a single library:

        FilesLibraryService.delete(libraryId)
        

    where libraryId is the library id in the following standard UUID format: 00000000-0000-0000-0000-000000000000.

    Returns a message that the library with the id was deleted, or a failure message if it is not found.

  7. Run this command to delete multiple libraries:

      FilesLibraryService.deleteBatch(filePath)
      

    where filePath is the full path to a text file containing a list with a single library id per line in the following standard UUID format: 00000000-0000-0000-0000-000000000000. Create the file and save it in a local to the server where you are running the wsadmin processor.

    Returns an exception and stops processing if any item is not found.


Administer Files

 

Related tasks

Delete orphaned data

Printing information returned by commands

Start the wsadmin client


+

Search Tips   |   Advanced Search