Finds and removes objects that are not referenced on the server.
After executing these commands, you must restart the SAP NetWeaver Developer Studios of those users who were connected to the respective DTR server.
When a workspace is deleted, there could be closed activities that are no longer integrated into any workspace. Therefore, one option of this command is to find and delete such activities. The deletion of a closed activity will not delete the versions contained in this activity, which means that version graphs remain unchanged.
What was said about activities is also true for propagation lists.
When a workspace, closed activity or a propagation list is deleted, the membership relation between the contained versions and the deleted object is also deleted. When all versions of a versioned object do not belong to any workspace, activity or propagation list, then it may make sense to find and remove such versioned objects from the repository. The removal in this case means deleting the complete object including all its versions.
Syntax
Syntax |
SERVERGARBAGECOLLECT [-a] [-p] [-r] [-preview] [-c "comments"] |
Arguments |
|
[-a] |
Removes all activities that are not integrated into any workspace. |
[-p] |
Removes all propagation lists that are not integrated into any workspace. |
[-r] |
Removes all versioned objects that are not part of any activity, propagation list or workspace. |
[-preview] |
Specifies that a preview of the garbage collection is required. If this option is specified, the list of activities, propagation lists and versioned resources that will be garbage collected are displayed. |
[-c "comments"] |
Description why the action was performed. |
Description |
Performs garbage collection on activities, propagation lists and versioned resources. Removes all objects that are not part of any workspace. The list of activities, propagation lists and versioned resources that were garbage collected is displayed. If none of the above options are specified, then the action is to garbage collect all. |
Garbage Collection of Activities
To perform garbage collection of activities, execute:
servergarbagecollect -a
Garbage Collection of Propagation Lists
To perform garbage collection of propagation lists, execute:
servergarbagecollect -p
Garbage Collection of Versioned Resources
To perform garbage collection of versioned resources, execute:
servergarbagecollect -r