Stop sharing a subroutine
Users with the 'Share content' permission can stop sharing subroutines at any time. Right-click the subroutine and choose 'Stop sharing' to revoke access for all accounts, or select 'Edit sharing' to uncheck and remove specific accounts.
Accounts having the "Share content" permission can share private subroutines with other accounts in the system. See Share a subroutine
Sharing a subroutine can be stopped either per account or for all accounts at once.
To stop sharing a subroutine for all accounts at once, right-click on the subroutine and choose the "Stop sharing" option:

To stop sharing the subroutine per account, otherwise choose the "Edit sharing" option:

Uncheck accounts to stop sharing with them.