DeletePackages

<< Click to Display Table of Contents >>

DeletePackages

Deletes one or more packages from PDQ Deploy. Supports exact names, wildcard patterns, and batch deletion. All deletions are recorded in the audit log.

Syntax

PDQDeploy DeletePackages -Name <packageName> [-Force]

PDQDeploy DeletePackages -Name <package1>,<package2>,... [-Force]

PDQDeploy DeletePackages -Name "Chrome*" [-Force]

PDQDeploy DeletePackages -Name <packageName> [-Force] -Format json

Parameters

Parameter

Required

Description

-Name

Yes

One or more package names to delete. Use commas to separate multiple names. Supports wildcard patterns (* and ?).

-Force

No

Skips the confirmation prompt and allows deletion of packages that are used as nested steps in other packages. Packages with running deployments cannot be deleted even with -Force.

-Format

No

Output format. Specify json to receive a structured JSON result containing per-package status, a summary, the exit code, and its description. When using JSON output, confirmation prompts are written to stderr so that stdout contains only the JSON.

Exit Codes

Exit Code

Meaning

0

All packages were deleted successfully.

1

One or more packages failed to delete or were not found.

2

User cancelled at the confirmation prompt.

3

No packages were found matching the specified name(s).

4

One or more packages were skipped due to active deployments.

5

One or more packages were skipped because they are used as nested steps in other packages. Use -Force to delete them anyway.

Examples

Delete a single package (prompts for confirmation):

PDQDeploy DeletePackages -Name "Adobe Reader"

Delete a package without prompting:

PDQDeploy DeletePackages -Name "Adobe Reader" -Force

Delete all packages matching a wildcard pattern:

PDQDeploy DeletePackages -Name "Chrome*" -Force

Delete multiple named packages:

PDQDeploy DeletePackages -Name "7-Zip","Notepad++" -Force

Delete packages and receive structured JSON output (suitable for automation):

PDQDeploy DeletePackages -Name "Chrome*" -Force -Format json

NOTE: Deleting packages requires the Modify Packages RBAC permission. All deletions are recorded in the PDQ Deploy audit log.

 

 

 

© 2026 PDQ.com Corporation. All rights reserved.

PDQ.com is a trademark of PDQ.com Corporation. All other product and company names are the property of their respective owners.

Help Version: 20.0.22.0