Check fuse first
Check on another trusted environment that the required files and keys are accessible. Control important local folders and exports. Do not begin a cleanup while there may be a single remaining copy on the device being dropped off.
Terminate access
Log out of account sessions you no longer need and check the intended session management. Consider other user profiles on the device. A cloud logout alone does not remove local downloads or other saved access.
Follow device procedures
For the actual distribution, use the appropriate procedure of the operating system and the instructions of the owner. Before each final deletion step, check the security and responsibility again. The cloud scan described here does not replace a full device cleanup.
Example
Before the old laptop is handed over, security and key access are tested on the replacement device. Only then will you be deregistered and the handover procedure intended for the device will follow.