save data on external storage and delete files