Method: enterprises.policies.removePolicyApplications

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

string

Required. The name of the policy containing the ApplicationPolicy objects to be removed, in the form enterprises/{enterpriseId}/policies/{policyId}.

Request body

The request body contains data with the following structure:

JSON representation
{
  "packageNames": [
    string
  ]
}
Fields
packageNames[]

string

Required. Package names to be removed. Entries that are not found are ignored. There must be at least one entry in packageNames.

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 (Policy)
  }
}
Fields
policy

object (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.