How Do I Turn Off All Sharing On My Samsung?

How do I turn off phone sharing?

.

How do I turn off nearby sharing?