From c667ffa8eb60e321308bcf0cf474781cdb70e29c Mon Sep 17 00:00:00 2001 From: Taro Murao Date: Fri, 14 Jan 2022 19:07:32 +0100 Subject: [PATCH] leave: Update log message to advise that device still needs deleting Change-type: patch --- lib/utils/promote.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lib/utils/promote.ts b/lib/utils/promote.ts index 3bb97370..25ad79ab 100644 --- a/lib/utils/promote.ts +++ b/lib/utils/promote.ts @@ -80,7 +80,12 @@ export async function leave( logger.logDebug('Deconfiguring...'); await deconfigure(deviceHostnameOrIp); - logger.logSuccess('Device successfully left the platform.'); + logger.logSuccess(stripIndent` + Device successfully left the platform. The device will still be listed as part + of the fleet, but changes to the fleet will no longer affect the device and its + status will eventually be reported as 'Offline'. To irrecoverably delete the + device from the fleet, use the 'balena device rm' command or delete it through + the balenaCloud web dashboard.`); } async function execCommand(