Mantenha tudo organizado com as coleções
Salve e categorize o conteúdo com base nas suas preferências.
Nesta página, mostramos como excluir objetos de buckets de armazenamento isolados do Google Distributed Cloud (GDC).
Antes de começar
Um namespace de projeto gerencia recursos de bucket no servidor da API Management. Você
precisa ter um projeto para trabalhar com buckets e objetos.
Você também precisa ter as permissões de bucket adequadas para realizar a seguinte
operação. Consulte Conceder acesso ao bucket.
Excluir objetos em buckets
Console
No menu de navegação, clique em Object Storage.
Clique no nome do bucket que contém os objetos.
Aguarde o redirecionamento para a página Detalhes do bucket com os objetos listados em uma tabela.
Clique em ExcluirExcluir no final da linha do objeto a ser excluído.
Aguarde alguns minutos e atualize a página para verificar se o objeto foi excluído.
Opcional: ative a opção Mostrar dados excluídos para ver quais objetos você excluiu.
Todos os objetos em buckets de duas zonas têm controle de versão. Portanto, a exclusão de um objeto não o remove do armazenamento. Em vez disso, o objeto será marcado para exclusão e não ficará mais visível nas chamadas LIST. O objeto ainda pode ser recuperado especificando o ID da versão. Um objeto só é excluído permanentemente quando o versionID é especificado durante a exclusão.
CLI
Para excluir um arquivo de um bucket, execute o seguinte comando:
gdcloudstoragerms3://BUCKET/OBJECT
Destruição criptografada de objetos em buckets com criptografia v2
Use o seguinte para recuperar todas as AEADKeys pertencentes a este bucket:
[[["Fácil de entender","easyToUnderstand","thumb-up"],["Meu problema foi resolvido","solvedMyProblem","thumb-up"],["Outro","otherUp","thumb-up"]],[["Difícil de entender","hardToUnderstand","thumb-down"],["Informações incorretas ou exemplo de código","incorrectInformationOrSampleCode","thumb-down"],["Não contém as informações/amostras de que eu preciso","missingTheInformationSamplesINeed","thumb-down"],["Problema na tradução","translationIssue","thumb-down"],["Outro","otherDown","thumb-down"]],["Última atualização 2025-09-04 UTC."],[[["\u003cp\u003eThis guide details how to delete objects from Google Distributed Cloud (GDC) air-gapped storage buckets, requiring a project namespace and proper bucket permissions.\u003c/p\u003e\n"],["\u003cp\u003eObjects can be deleted via the console by navigating to the "Object Storage" section, selecting the bucket, and clicking the "Delete" option next to the desired object, which may take a few minutes to process, as well as an optional way to check recently deleted objects.\u003c/p\u003e\n"],["\u003cp\u003eYou can utilize the CLI to delete objects using the \u003ccode\u003egdcloud storage rm\u003c/code\u003e command followed by the bucket and object name.\u003c/p\u003e\n"],["\u003cp\u003eCrypto shredding objects is possible by deleting their associated AEADKey, which can be found using \u003ccode\u003ekubectl get aeadkeys\u003c/code\u003e and is an irreversible operation resulting in complete data loss.\u003c/p\u003e\n"]]],[],null,["# Delete storage objects in projects\n\nThis page shows you how to delete objects from Google Distributed Cloud (GDC) air-gapped storage buckets.\n\nBefore you begin\n----------------\n\nA project namespace manages bucket resources in the Management API server. You\nmust have a [project](/distributed-cloud/hosted/docs/latest/gdch/platform/pa-user/project-management) to work with buckets and objects.\n\nYou must also have the appropriate bucket permissions to perform the following\noperation. See [Grant bucket access](/distributed-cloud/hosted/docs/latest/gdch/application/ao-user/grant-obtain-storage-access#grant_bucket_access).\n\nDelete objects in buckets\n-------------------------\n\n### Console\n\n1. In the navigation menu, click **Object Storage**.\n2. Click the name of the bucket containing the objects.\n3. Wait to be redirected to the **Bucket details** page with objects listed in a table.\n4. Click delete **Delete** at the end of the row of the object to be deleted.\n5. Wait a few minutes and refresh the page to check that the object is deleted.\n6. Optional: Toggle the **Show deleted data** option to see which objects you've deleted.\n\nNote that all objects in dual-zone buckets are versioned, so deleting an object won't remove that object from storage. Instead, the object will be marked for deletion and will no longer be visible in LIST calls. The object can still be retrieved by specifying its version ID. An object is permanently deleted only when specifying the `versionID` when performing the deletion.\n\n### CLI\n\nTo delete a file from a bucket, run the following command: \n\n gdcloud storage rm s3://\u003cvar translate=\"no\"\u003eBUCKET\u003c/var\u003e/\u003cvar translate=\"no\"\u003eOBJECT\u003c/var\u003e\n\nCrypto shred objects in buckets with encryption v2\n--------------------------------------------------\n\n| **Warning:** Deleting an AEADKey leads to irreversible data loss. Objects encrypted with the deleted key cannot be recovered.\n\nYou can use the following to retrieve all AEADKeys belong to this bucket: \n\n kubectl get aeadkeys -n \u003cvar translate=\"no\"\u003eNAMESPACE_NAME\u003c/var\u003e -l cmek.security.gdc.goog/resource-name=\u003cvar translate=\"no\"\u003eBUCKET_NAME\u003c/var\u003e\n\nAnd then you can follow [Delete a key](/distributed-cloud/hosted/docs/latest/gdch/application/ao-user/kms/create-delete-keys#delete) to delete the intended AEADKey to crypto shred objects."]]