/* Deletes all entries from the store that match the specified key. */
int ble_store_util_delete_all(int type, const union ble_store_key *key)
/* Deletes all entries from the store that match the specified key. */
int ble_store_util_delete_all(int type, const union ble_store_key *key)
{
    int rc;
    do {
        rc = ble_store_delete(type, key);
    } while (rc == 0);
    if (rc != BLE_HS_ENOENT) {
        return rc;
    }
    return 0;
}