All Products
Search
Document Center

Resource Management:DeleteResourceShare

Last Updated:Aug 28, 2026

Deletes a resource share.

Operation description

After you delete a resource share, all associated principals lose access to the shared resources. The resources themselves are not deleted.

A deleted resource share enters the Deleted state. The system automatically removes the record within 48 to 96 hours.

The following example deletes the resource share rs-qSkW1HBY**** in the cn-hangzhou region.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

No authorization for this operation. If you encounter issues with this operation, contact technical support.

Request parameters

Parameter

Type

Required

Description

Example

ResourceShareId

string

Yes

The ID of the resource share.

rs-qSkW1HBY****

For more information about common request parameters, see Common parameters.

Response elements

Element

Type

Description

Example

object

The returned result.

RequestId

string

The request ID.

A627EE2A-223D-4E1F-A954-394686AEA916

Examples

Success response

JSON format

{
  "RequestId": "A627EE2A-223D-4E1F-A954-394686AEA916"
}

Error codes

HTTP status code

Error code

Error message

Description

400 MissingParameter.ResourceShareId You must specify ResourceShareId.
400 InvalidParameter.ResourceShareId The ResourceShareId is invalid.
400 InvalidParameter The specified parameter is invalid.
404 EntityNotExists.ResourceShare The resource share does not exist in the current account.
409 ResourceShareStatusMismatchAction The status of the resource share does not allow the specified operation.
409 DeleteResourceShareConflict You cannot delete a resource share while there are unfinished tasks.

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.