This example deletes all packages published to the Sales
channel that have an expiration date before October 7, 2009, at 12:59
p.m.
PackageCleanup -ch Sales -d "2009.10.07 at 12:59 PM" -metauser userX
-metapass passX -domain DefaultAuth
This example uses the
PROMPTEACH option, which enables you to confirm deletion of each package
individually.
PackageCleanup -ch Sales -d "2009.10.07 at 12:59 PM" -metauser userX
-metapass passX -domain DefaultAuth -prompteach
This example deletes
a specific package that is defined in the Sales channel. The PKG option
is specified to identify the exact package to delete. In this example,
the package is named s109513698.spk and has an expiration date of
October 7, 2009, at 12:59 p.m.
PackageCleanup -ch Sales -d "2009.10.07 at 12:59 PM" -pkg s109513698.spk
-metauser userX -metapass passX -domain DefaultAuth
This example deletes
all packages that are not defined in any channel. Only packages that
are not defined in a channel and have an expiration date before October
7, 2009, at 10:00 a.m. are deleted.
PackageCleanup -d "2009.10.07 at 10:00 AM" -metauser userX -metapass passX
-domain DefaultAuth
This example deletes
packages that have been published to a WebDAV server. The utility
connects to the server using the specified URL and deletes all packages
published to that location that have an expiration before October
7, 2009, at 05:00 a.m.
PackageCleanup -d "2009.10.07 at 05:00 AM" -url http://myhost.com/Sales/Packages
-username davUserX -password davPasswordX -metauser userX -metapass passX
-domain DefaultAuth
This example deletes
a specific package from a WebDAV server. The PKG option is used to
provide the name of the package to delete. The utility connects to
the server using the specified URL and deletes the package named s3964865240.
PackageCleanup -d "2009.10.07 at 12:59 PM" -metauser userX -metapass passX
-domain DefaultAuth -url http://myhost.com/Sales/Packages -username davUserX
-password davPasswordX -pkg s3964865240
This example lists packages
(does not delete) by using the LIST option. Note that the -d argument
is not required when listing packages. This example lists all packages
that are published in the Sales channel.
PackageCleanup -list -ch Sales -metauser userX -metapass passX
-domain DefaultAuth
This example uses the
LIST option to list all packages with an expiration date before October
7, 2009, at 12:00 p.m.
PackageCleanup -ch Sales -d "2009.10.07 at 12:00 PM" -metauser userX
-metapass passX -domain DefaultAuth -prompteach -list