curl --request POST \
--url https://api.getprimo.com/devices/{deviceId}/wipe \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"wipeType": "SOFT"
}
'{
"success": true,
"platform": "ANDROID",
"message": "<string>",
"wipeType": "SOFT"
}Wipe the device for the given device ID.
Supported platforms: macOS, iOS, Windows, Linux
Platform-specific behavior:
wipeType parameter:
SOFT (default): Attempts to wipe the device once. If it fails, the device reboots to its initial state.HARD: Attempts to wipe the device repeatedly until successful.
wipeType parameter is ignored.Not supported: Android, Chrome OS
curl --request POST \
--url https://api.getprimo.com/devices/{deviceId}/wipe \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"wipeType": "SOFT"
}
'{
"success": true,
"platform": "ANDROID",
"message": "<string>",
"wipeType": "SOFT"
}Use your Primo API key in the Authorization header as Bearer <API_KEY>.
Type of wipe to perform. Only applicable for Windows devices. SOFT resets the device but preserves user data, HARD performs a complete factory reset. Ignored for other platforms.
SOFT, HARD The platform of the wiped device
ANDROID, IOS, MACOS, WINDOWS, LINUX, CHROME_OS, IPADOS, UNKNOWN A human-readable description of the wipe operation
The type of wipe that was performed. Only present for Windows devices (SOFT or HARD). Null for other platforms.
SOFT, HARD Was this page helpful?