Deleting an Object

Last Updated At: 2025-10-21 09:10:00

Applicable Scenario

The cloud platform's Cloud Object Storage (COS) supports deleting one or multiple objects directly. If you only need to delete one object, just provide its name (object key) and call an API request to delete it.

Usage Instructions

Using the REST API

Use the REST API to initiate a single object deleting request. For more information, see Delete Object.

Using Java SDKs

COS supports AWS Java SDK. See Using AWS S3 SDK to Access COS to access COS and operate according to the Delete Object section in the official documentation of AWS Java SDK 2.20.0.