trying to implement device deletion

unfinished!