To remove the File Server role service, you need to stop sharing all non-administrative shared folders on this computer using ...

To remove the File Server role service, you need to stop sharing all non-administrative shared folders on this computer using the Share and Storage Management snap-in. The Share and Storage Management snap-in is available under the File Services role, in the console tree.