AI-generated Key Takeaways
- 
          This page describes how to remove applications from a policy using an HTTP POST request. 
- 
          The request requires specifying the policy name in the path parameters. 
- 
          The request body must contain a list of application package names to be removed. 
- 
          The successful response includes the updated policy object. 
- 
          Authorization requires the https://www.googleapis.com/auth/androidmanagementOAuth scope.
Removes applications in a policy.
HTTP request
POST https://androidmanagement.googleapis.com/v1/{name=enterprises/*/policies/*}:removePolicyApplications
The URL uses gRPC Transcoding syntax.
Path parameters
| Parameters | |
|---|---|
| name | 
 Required. The name of the policy containing the ApplicationPolicy objects to be removed, in the form  | 
Request body
The request body contains data with the following structure:
| JSON representation | 
|---|
| { "packageNames": [ string ] } | 
| Fields | |
|---|---|
| packageNames[] | 
 Required. Package names to be removed. Entries that are not found are ignored. There must be at least one entry in  | 
Response body
Response to a request to remove ApplicationPolicy objects in the given policy.
If successful, the response body contains data with the following structure:
| JSON representation | 
|---|
| {
  "policy": {
    object ( | 
| Fields | |
|---|---|
| policy | 
 The updated policy after ApplicationPolicy objects have been removed. | 
Authorization scopes
Requires the following OAuth scope:
- https://www.googleapis.com/auth/androidmanagement
For more information, see the OAuth 2.0 Overview.
