SharedWorkspace.Delete Method
Deletes the current shared workspace and all data within it.
Namespace: Microsoft.Office.Core
Assembly: office (in office.dll)
Syntax
'Declaration
Sub Delete
'Usage
Dim instance As SharedWorkspace
instance.Delete()
void Delete()
Remarks
The Delete method will fail if the user does not have permission to delete the current shared workspace.
If the active document was opened directly from the workspace, after deleting the workspace the document will no longer be saved on disk. The developer must remember to save the document to a new location before closing it, or the document will cease to exist.