update and delete files