Before you begin
To use administrative commands, you must use the wsadmin client. For more information, see the Starting the wsadmin client
To delete a user's draft pages, you need the user's ID as it appears in your LDAP directory.
About this task
If a user edits a wiki page without saving the changes, a draft version of the page is stored in the database. Each time the user, or a wiki owner or editor, visits the page, a reminder about the draft is displayed. If the user is no longer available to save or delete the draft version, you can delete it by using the deleteDraftsByOwnerId command. This command is useful when a user has left your organization.
To delete a user's drafts, complete the following steps:
Starting the wsadmin client
- Start the wsadmin client.
- Start the Wikis Jython script interpreter by entering the following command:
- To delete draft wiki pages that are owned by a specific user, enter the following command:
where directory-ID is the user's ID in the following standard Universally Unique Identifier (UUID) format: 00000000-0000-0000-0000-000000000000.
All draft pages that are owned by the specified user are deleted.