Delete Installed Chaincode Package

delete

/console/admin/api/v2/chaincodes/{packageID}

Deletes an installed chaincode package using the chaincode package ID. Use this to remove obsolete chaincode packages to free up space in your instance.

This process stops and removes any container associated with the package ID, deletes the chaincode image, removes the package from the peer's file systems, and updates the peer's cache.

Request

Supported Media Types
Path Parameters
Back to Top

Response

Supported Media Types

200 Response

Chaincode package deleted successfully
Body ()
Root Schema : schema
Type: object
Show Source
Example:
{
    "respMesg":"Success"
}

400 Response

Invalid arguments
Body ()
Root Schema : 400errorModels
Type: object
Show Source
Example:
{
    "respMesg":"invalid argument"
}

401 Response

Unauthorized

404 Response

Resource not found

500 Response

Internal Server Error
Body ()
Root Schema : schema
Type: object
Show Source
Example:
{
    "respMesg":"This chaincode is not installed on any peer"
}

Default Response

Unexpected error
Body ()
Root Schema : errorModel
Type: object
Show Source
Back to Top