Restez organisé à l'aide des collections
Enregistrez et classez les contenus selon vos préférences.
<ph type="x-smartling-placeholder">
Supprime et invalide les identifiants spécifiés pour le compte de service
associées à cette entreprise. Le compte de service appelant doit avoir été
récupéré en appelant Enterprises.GetServiceAccount et doit avoir été défini
en tant que compte de service d'entreprise en appelant Enterprises.SetAccount.
Ne spécifiez pas de corps de requête pour cette méthode.
Réponse
Si la requête aboutit, cette méthode renvoie un corps de réponse vide.
Sauf indication contraire, le contenu de cette page est régi par une licence Creative Commons Attribution 4.0, et les échantillons de code sont régis par une licence Apache 2.0. Pour en savoir plus, consultez les Règles du site Google Developers. Java est une marque déposée d'Oracle et/ou de ses sociétés affiliées.
Dernière mise à jour le 2025/07/26 (UTC).
[null,null,["Dernière mise à jour le 2025/07/26 (UTC)."],[[["\u003cp\u003eThis method removes and invalidates specified credentials for an enterprise's service account, requiring prior retrieval and setup of the service account.\u003c/p\u003e\n"],["\u003cp\u003eIt is deprecated and will be inaccessible after September 30, 2025, with new integrations directed to alternative recommendations.\u003c/p\u003e\n"],["\u003cp\u003eAuthorization with the \u003ccode\u003ehttps://www.googleapis.com/auth/androidenterprise\u003c/code\u003e scope is necessary for using this method.\u003c/p\u003e\n"],["\u003cp\u003eThe request involves specifying the enterprise and key IDs as path parameters in a DELETE request to the provided URL.\u003c/p\u003e\n"],["\u003cp\u003eUpon successful execution, the method returns an empty response body, signifying completion of the credential removal.\u003c/p\u003e\n"]]],[],null,["# Serviceaccountkeys: delete\n\n| **Note:** Requires [authorization](#auth).\n\n\u003cbr /\u003e\n\n| **Deprecated:** New integrations cannot use this method and can refer to our [new\n| recommendations](/android/work/deprecations#recommended_alternative_4). \n| **This method will no longer be accessible by\n| anyone after September 30, 2025.**\nRemoves and invalidates the specified credentials for the service account associated with this enterprise. The calling service account must have been retrieved by calling Enterprises.GetServiceAccount and must have been set as the enterprise service account by calling Enterprises.SetAccount.\n\n\u003cbr /\u003e\n\nRequest\n-------\n\n### HTTP request\n\n```\nDELETE https://www.googleapis.com/androidenterprise/v1/enterprises/enterpriseId/serviceAccountKeys/keyId\n```\n\n### Parameters\n\n| Parameter name | Value | Description |\n|----------------|----------|---------------------------|\n| **Path parameters** |||\n| `enterpriseId` | `string` | The ID of the enterprise. |\n| `keyId` | `string` | The ID of the key. |\n\n### Authorization\n\nThis request requires authorization with the following scope:\n\n| Scope |\n|-----------------------------------------------------|\n| `https://www.googleapis.com/auth/androidenterprise` |\n\nFor more information, see the [authentication and authorization](/android/work/play/emm-api/v1/how-tos/authorizing) page.\n\n### Request body\n\nDo not supply a request body with this method.\n\nResponse\n--------\n\nIf successful, this method returns an empty response body."]]