Retrieving the Activation Status of the Bucket Recycle Bin
Updated at:2025-11-03
API description
This API retrieves the bucket trash status and returns the current trash directory name, which defaults to .trash. The user must be the owner of the source bucket with FULL_CONTROL permission and also the owner of the target bucket.
Request URI
GET /v1/{bucketName}/?trash
Parameters of request body
None
Response body parameters
None
Request example
None
Response example
JSON
1HTTP/1.1 200 OK
2 <Common response headers>
3{
4 "trashDir" : ".trash/"
5}
Error code
Please refer to the general error codes
