remove obsolete files and sort posts decending by id