remove the path of the timestamp