   end
 
   @doc """
-  Deletes an enrollment token. This operation invalidates the token, preventing its future use.
-
-  ## Parameters
-
-  - connection (GoogleApi.AndroidManagement.V1.Connection): Connection to server
-  - name (String.t): The name of the enrollment token in the form enterprises/{enterpriseId}/enrollmentTokens/{enrollmentTokenId}.
+  Deletes a policy. This operation is only permitted if no devices are currently referencing the policy.
+
+  ## Parameters
+
+  - connection (GoogleApi.AndroidManagement.V1.Connection): Connection to server
+  - name (String.t): The name of the policy in the form enterprises/{enterpriseId}/policies/{policyId}.
   - optional_params (KeywordList): [optional] Optional parameters
     - :$.xgafv (String.t): V1 error format.
     - :access_token (String.t): OAuth access token.

    connection
    |> Connection.execute(request)
    |> Response.decode(opts ++ [struct: %GoogleApi.AndroidManagement.V1.Model.Empty{}])
  end

  @doc """

  {:ok, %GoogleApi.AndroidManagement.V1.Model.Empty{}} on success
  {:error, info} on failure
  """
  @spec androidmanagement_enterprises_policies_delete(Tesla.Env.client(), String.t(), keyword()) ::
          {:ok, GoogleApi.AndroidManagement.V1.Model.Empty.t()} | {:error, Tesla.Env.t()}
  def androidmanagement_enterprises_policies_delete(
        connection,
        name,
        optional_params \\ [],
