A code has been developed by researchers at the University of Washington that will automatically delete files after a pre-set time limit.