Mantieni tutto organizzato con le raccolte
Salva e classifica i contenuti in base alle tue preferenze.
Questa pagina mostra come eliminare gli oggetti dai bucket di archiviazione isolati di Google Distributed Cloud (GDC).
Prima di iniziare
Uno spazio dei nomi del progetto gestisce le risorse bucket nel server API Management. Per utilizzare bucket e oggetti, devi disporre di un progetto.
Devi inoltre disporre delle autorizzazioni del bucket appropriate per eseguire la seguente operazione. Consulta Concedere l'accesso al bucket.
Eliminare gli oggetti nei bucket
Console
Nel menu di navigazione, fai clic su Object Storage.
Fai clic sul nome del bucket contenente gli oggetti.
Attendi il reindirizzamento alla pagina Dettagli bucket con gli oggetti elencati in una tabella.
Fai clic su EliminaElimina alla fine della riga dell'oggetto da eliminare.
Attendi qualche minuto e aggiorna la pagina per verificare che l'oggetto sia stato eliminato.
(Facoltativo) Attiva/disattiva l'opzione Mostra dati eliminati per vedere quali oggetti hai eliminato.
Tieni presente che tutti gli oggetti nei bucket dual-zone sono sottoposti al controllo delle versioni, quindi l'eliminazione di un oggetto non lo rimuoverà dallo spazio di archiviazione. L'oggetto verrà invece contrassegnato per l'eliminazione e non sarà più visibile nelle chiamate LIST. L'oggetto può comunque essere recuperato specificando il relativo ID versione. Un oggetto viene eliminato definitivamente solo quando viene specificato versionID durante l'eliminazione.
Interfaccia a riga di comando
Per eliminare un file da un bucket, esegui questo comando:
gdcloudstoragerms3://BUCKET/OBJECT
Elimina in modo definitivo gli oggetti nei bucket con crittografia v2
Puoi utilizzare quanto segue per recuperare tutte le AEADKey appartenenti a questo bucket:
Dopodiché, puoi seguire la procedura descritta in Eliminare una chiave per eliminare la chiave AEADKey prevista per la distruzione crittografica degli oggetti.
[[["Facile da capire","easyToUnderstand","thumb-up"],["Il problema è stato risolto","solvedMyProblem","thumb-up"],["Altra","otherUp","thumb-up"]],[["Difficile da capire","hardToUnderstand","thumb-down"],["Informazioni o codice di esempio errati","incorrectInformationOrSampleCode","thumb-down"],["Mancano le informazioni o gli esempi di cui ho bisogno","missingTheInformationSamplesINeed","thumb-down"],["Problema di traduzione","translationIssue","thumb-down"],["Altra","otherDown","thumb-down"]],["Ultimo aggiornamento 2025-09-04 UTC."],[[["\u003cp\u003eThis guide details how to delete objects from Google Distributed Cloud (GDC) air-gapped storage buckets using both the console and the CLI.\u003c/p\u003e\n"],["\u003cp\u003eA project namespace is required to manage bucket resources, and users must have the necessary bucket permissions to delete objects.\u003c/p\u003e\n"],["\u003cp\u003eThe console method involves navigating to the Object Storage, selecting a bucket, and clicking the delete option on the row of each object intended for deletion.\u003c/p\u003e\n"],["\u003cp\u003eThe CLI method involves running the command \u003ccode\u003egdcloud storage rm s3://BUCKET/OBJECT\u003c/code\u003e, replacing BUCKET and OBJECT with the correct bucket and object names.\u003c/p\u003e\n"],["\u003cp\u003eDeleting an AEADKey in buckets encrypted with encryption v2 will permanently erase the associated data, and to delete an AEADKey, you must identify it with \u003ccode\u003ekubectl get aeadkeys\u003c/code\u003e, then follow instructions to delete a key.\u003c/p\u003e\n"]]],[],null,["# Delete storage objects\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/platform/pa-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."]]