Deleting Shared Scope




Go back to index

How to delete shared scope


Following code block explains how to programmatically delete a shared scope in a SSP.

      using System;
      using SPTool.Library;
      
      namespace SPTool.Test
      {
          class Program
          {
              static void Main(string[] args)
              {
                  SPTSharedServiceProvider ssp = new SPTSharedServiceProvider("http://sptool:5000/ssp/admin");

                  // Delete Shared Scope
                  SPTReturn returnObj = ssp.DeleteSharedScope("Dummy Scope");

                  // Check the status of scope deletion
                  if (returnObj.State == SPTState.Success)
                  {
                      // Deleting scope successful
                  }
                  else
                  {
                      // Deleting scope Failed
                  }
              }
          }
      }
      


Go back to index