implemented deleteFile for filesystem api