//Set Location
client.setLocation({
	'id': 'locationId1',
	'locationName': 'Scene1LocationName'
})

//Add another Location
client.setLocation({
	'id': 'locationId2',
	'locationName': 'Scene2LocationName'
},true)

//Remove first Location
client.removeLocation({
	'id': 'locationId1',
	'locationName': 'Scene1LocationName'
});
1

Removing all Locations

To remove all locations, use the client.removeLocation() method.

client.removeLocation()
2

Removing specific Locations

If you have added multiple locations and only want to remove one of them, you can remove it by using client.removeLocation() and by passing in the exact location object you want to remove.

// remove specific location
const locationToRemove = {
	// your custom location object
}
client.removeLocation(locationToRemove);
//Set Location
client.setLocation({
	'id': 'locationId1',
	'locationName': 'Scene1LocationName'
})

//Add another Location
client.setLocation({
	'id': 'locationId2',
	'locationName': 'Scene2LocationName'
},true)

//Remove first Location
client.removeLocation({
	'id': 'locationId1',
	'locationName': 'Scene1LocationName'
});