Updated on 2026-08-21 GMT+08:00

Recovering Deleted Objects

After versioning is enabled, you can recover data lost due to accidental operations or application failures using the following methods:

  • Copy a specific historical object version and upload it to the bucket, making it the current version.
  • Permanently delete a delete marker so that the most recent historical version becomes the current version.

Prerequisites

  • Versioning is enabled for the bucket that stores the objects.
  • To recover data by permanently deleting a delete marker, ensure that the bucket contains at least one historical version of the same object without a delete marker.

Recovering a Deleted Object by Copying a Specific Historical Version

You can recover a deleted object through copying a specific historical version by using APIs or SDKs.

Before copying, obtain the required version ID by referring to Viewing Object Versions (When Versioning Is Enabled or Suspended).

Recovering a Deleted Object by Permanently Deleting a Delete Marker

Deleting an object from a versioning-enabled bucket does not remove the object itself. Instead, OBS inserts a delete marker to indicate that the latest version of the object is in the deleted state, while the previous current version becomes a historical version.

You can remove a delete marker using OBS Console, APIs, SDKs, or obsutil.