implemented file delete, cleanup of file service state