To unshare a given view of a given table
With this function, you stop sharing a previously shared view.
This function doesn't work in a formula field because it's modifying data.
unshareView(tableName, viewName)To unshare a given view of a given table.
unshareView("Invoices", "Current month")
Result: Unshares the Current month view in the Invoices table.