Delete object
If the container has access policy It must allow deleting an object, more details in the subsection Actions instructions Access Policy.
At object removal take into account peculiarities of deleting objects with segments.
If the container is enabled or suspended versioning Some objects can be restored after deletion, more details in the subsection Delete an object when versioning is enabled or paused.
If versioning in the container is turned off (never enabled), the object is irrevocably deleted.
Delete object
- В control panels from the top menu, press Products and select Object Storage.
- Go to the section Containers.
- Open the container page → tab Objects.
- Mark the object you want to delete.
- Click Delete.
- Enter the name of the object to confirm the deletion.
- Click Delete.
Delete a segmented object
When storing an object, you cannot delete its segments in the service container — doing so will break the entire file.
To remove segmented object, delete the manifest file. To delete, use the API you used to load the object. When deletion through the control panel Swift API is used.
If an object is loaded and deleted in different ways (for example, an object was loaded using the S3 API and deleted in the dashboard), the object segments may not be deleted, continue to be stored in the hidden container, and billed.
Delete an object when versioning is enabled or paused
If versioning in the container is enabled or suspended, the object may have versions — objects with the same name that were loaded earlier than the current version of the object.
The behavior when deleting an object depends on whether you delete the object with or without specifying a version:
-
at unspecified deletion the current version of the object is transferred to the list of versions. An empty object with its own version ID and tag will be created as the current version Deleted. To make the object available to users, rebuild it from any version that doesn't have a tag Deleted.
-
at uninstalling a particular version version is deleted with no possibility of recovery. If the version to be deleted is:
- current — the version will become an empty object and will be included in the list of versions with the tag Deleted. The current version of the object becomes the most recent version from the list that does not have a tag Deleted;
- the previous one — it will be removed from the list of versions altogether.
If the deleted version is the only version, the object cannot be restored.
Delete an object without specifying a version
To delete an object without specifying a version via API or other tools, do not specify the parameter version-id
.
- В control panels from the top menu, press Products and select Object Storage.
- Go to the section Containers.
- Open the container page → tab Objects.
- Make sure the toggle switch Versions off.
- Mark the object you want to delete.
- Click Delete.
- Enter the name of the object to confirm the deletion.
- Click Delete.
Delete a specific version
To remove a specific version via API or other tools, specify the parameter version-id
meaning version ID.
- В control panels from the top menu, press Products and select Object Storage.
- Go to the section Containers.
- Open the container page → tab Objects.
- Turn on the toggle switch Versions.
- Check the box next to the version you want to uninstall.
- Click Delete.
- Enter the name of the object to confirm the deletion.
- Click Delete.