Link sharing will not turn off

I am sharing a link to a document to the class via GClassroom. I would like to turn the sharing feature off but am unable to do so. Please advise.

Click on the sharing icon in the toolbar and then at the bottom of the screen select remove upload.