delete Selfie
Deletes a Fit@Home selfie for a given date.
Return
true if the selfie was deleted successfully; false otherwise.
Parameters
date
The date of the selfie to delete, formatted as yyyy-MM-dd.
Throws
if deletion fails.
Android (Kotlin)
lifecycleScope.launch {
try {
val ok = AFCore.fitAtHome().deleteSelfie("2025-08-22")
if (ok) showMessage("Selfie deleted!") else showError("Delete failed")
} catch (t: Throwable) {
showError("Delete failed: ${t.message}")
}
}Content copied to clipboard
iOS (Swift)
Task {
do {
let ok = try await AFCore.shared.fitAtHome().deleteSelfie("2025-08-22")
ok ? showMessage("Selfie deleted!") : showError("Delete failed")
} catch {
showError("Delete failed: \\(error.localizedDescription)")
}
}Content copied to clipboard