Here's an approach to bulk delete activities in Garmin Connect using javascript and the unofficial Garmin Connect API:
index.tsx983 chars33 lines
index.tsx339 chars11 lines
index.tsx291 chars10 lines
To bulk delete activities, you can simply iterate over the list of activities retrieved in step 2 and call deleteActivity for each one:
index.tsx338 chars8 lines
Note that the above approach uses the unofficial Garmin Connect API, which may stop working if Garmin decides to change their API. Also, there are risks associated with using unofficial APIs as they may violate the terms of use of the service being accessed.
gistlibby LogSnag