Updated on 2025-04-25 GMT+08:00

Undeleting an Object

Scenarios

If a bucket has versioning enabled, you can recover a deleted object by undeleting it.

Important Notes

  • Files can be undeleted, but folders cannot.

    After you undelete a deleted file, the file is recovered and will appear in the Objects list. Then you can perform basic operations on the file as you normally do on other objects. If the file was stored in a folder before the deletion, it will be recovered to its original path after you undelete it.

  • Deleted files in the Deleted Objects also keep multiple versions. When deleting different versions of files, note the following points:
    • If you delete a version with the Delete Marker, it actually recovers this version instead of permanently deleting it. For details, see Related Operations.
    • If you delete a version without the Delete Marker, that version is permanently deleted. This version will not be recovered, even if the file is recovered later.

Prerequisites

  • Versioning has been enabled for the bucket. For details, see Configuring Versioning.
  • The file to be recovered is in the Deleted Objects list, and has at least one version without the Delete Marker.

Procedure

  1. In the navigation pane of OBS Console, choose Object Storage.
  2. In the bucket list, click the bucket you want to operate to go to the Objects page.
  3. Click Deleted Objects.
  4. In the row of the deleted object that you want to recover, click Undelete on the right.

    You can select multiple files and click Undelete above the object list to batch recover them.

    Figure 1 Undeleting a file

Related Operations

Recover a file by deleting its version with the Delete Marker:

  1. In the navigation pane of OBS Console, choose Object Storage.
  2. In the bucket list, click the bucket you want to operate to go to the Objects page.
  3. Enable Historical Versions.
  4. Locate the file to be retrieved. All its noncurrent versions will be displayed.

    • If you delete a version with the Delete Marker, the file will be recovered and retained in the Objects list.
    • If you delete a version without the Delete Marker, that version will be permanently deleted.

OSZAR »