Skip to main content

Delete Revision

DELETE https://deploygate.com/api/users/{OWNER_NAME}/platforms/{PLATFORM_TYPE}/apps/{APP_ID}/binaries/{REVISION_NUMBER}

Delete a specific revision.


Path Params

NameTypeRequiredDescription
OWNER_NAMEstringtrueApp owner's user name
PLATFORM_TYPEstringtrueios or android
APP_IDstringtrueApp's package name (Example: com.deploygate.android)
REVISION_NUMBERint32trueA number representing the revision on the package management screen (Example: #1)

Example

curl \
--url "https://deploygate.com/api/users/${OWNER_NAME}/platforms/${PLATFORM_TYPE}/apps/${APP_ID}/binaries/${REVISION_NUMBER}" \
-H "Authorization: Bearer ${TOKEN}" \
-X DELETE

Result 200

200 OK
{
"error": false
}

Result 400

400 Bad Request - Latest Revision
{
"error": true,
"message": "Cannot delete latest revision"
}
400 Bad Request - Protected Revision
{
"error": true,
"message": "Cannot delete protected revision"
}

Result 500

500 Internal Server Error
{
"error": true,
"message": "Failed to delete binary"
}