migrate file delete and database config setting