Trwale usuwa wersję pliku. Wersje możesz usuwać tylko z plików z zawartością binarną, np. obrazów lub filmów. Wersje innych plików, takich jak Dokumenty czy Arkusze Google, oraz ostatniej pozostałej wersji pliku nie można usunąć.
Jeśli operacja się uda, treść odpowiedzi będzie pusta.
Zakresy autoryzacji
Wymaga jednego z tych zakresów OAuth:
https://www.googleapis.com/auth/docs
https://www.googleapis.com/auth/drive
https://www.googleapis.com/auth/drive.appdata
https://www.googleapis.com/auth/drive.file
Niektóre zakresy są objęte ograniczeniami, a aplikacja może z nich korzystać dopiero po sprawdzeniu zabezpieczeń. Więcej informacji znajdziesz w przewodniku po autoryzacji.
[[["Łatwo zrozumieć","easyToUnderstand","thumb-up"],["Rozwiązało to mój problem","solvedMyProblem","thumb-up"],["Inne","otherUp","thumb-up"]],[["Brak potrzebnych mi informacji","missingTheInformationINeed","thumb-down"],["Zbyt skomplikowane / zbyt wiele czynności do wykonania","tooComplicatedTooManySteps","thumb-down"],["Nieaktualne treści","outOfDate","thumb-down"],["Problem z tłumaczeniem","translationIssue","thumb-down"],["Problem z przykładami/kodem","samplesCodeIssue","thumb-down"],["Inne","otherDown","thumb-down"]],["Ostatnia aktualizacja: 2024-09-04 UTC."],[[["Permanently deletes a specified version of a file, applicable only to files with binary content like images or videos."],["Utilizes an HTTP DELETE request to `https://www.googleapis.com/drive/v2/files/{fileId}/revisions/{revisionId}`, requiring file and revision IDs."],["Requires an empty request body and returns an empty response body upon successful deletion."],["Needs authorization with one of the specified OAuth scopes, some of which may require a security assessment."]]],["This document outlines the process for permanently deleting a file revision using a `DELETE` HTTP request to a specific URL. The URL requires `fileId` and `revisionId` path parameters. The request body must be empty. A successful request results in an empty response body. Only revisions for files with binary content can be deleted. The operation requires one of four specified OAuth authorization scopes for authentication.\n"]]