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
- application/json
Path Parameters
-
packageID(required): string
Package ID of the chaincode
Response
Supported Media Types
- application/json
200 Response
Chaincode package deleted successfully
400 Response
Invalid arguments
401 Response
Unauthorized
404 Response
Resource not found
500 Response
Internal Server Error
Root Schema : schema
Type:
Show Source
object
Example:
{
"respMesg":"This chaincode is not installed on any peer"
}
Default Response
Unexpected error