delete

Deletes a set of data from the Samsung Health app with simplified code. It enables you to delete health data with a specific data type and building a DeleteDataRequest easily. To delete data asynchronously, use HealthDataStore.deleteDataAsync.

When deleting multiple data, the data deletion process handles each one sequentially. If one data deletion fails, none of them are deleted.

Only data provided by the app can be deleted. For example, if the data is recorded by the Samsung Health app, only the Samsung Health app can delete it.

Since

1.0.0

Parameters

type

A data type to be deleted.

builder

A lambda function to build the DeleteDataRequest according to the data type.

Preferences Submitted

You have successfully updated your cookie preferences.