Removing the link from assets when deleting the device