implemented location deletion