Remove all logic for file sending and share resource process.