delete tasks when deleting device make sure shares are assigned to correct task and not propagated let tasks have a unique name add field in task that denotes to which device it belongs