parameters: (self, wslist)
return_statement: return
docstring: deletes workspaces from list
          @param wslist List of names of workspaces to delete.
docstring_summary: deletes workspaces from list
docstring_tokens: deletes workspaces from list
function: def cleanup(self, wslist):
          """
          deletes workspaces from list
          @param wslist List of names of workspaces to delete.
          """
          if len(wslist) < 1:
              return
          for wsname in wslist:
              if api.AnalysisDataService.doesExist(wsname):
                  delete = self.createChildAlgorithm('DeleteWorkspace')
                  delete.setProperty("Workspace", wsname)
                  delete.execute()
          return
function_tokens: def cleanup ( self , wslist ) : if len ( wslist ) < 1 : return for wsname in wslist : if api . AnalysisDataService . doesExist ( wsname ) : delete = self . createChildAlgorithm ( 'DeleteWorkspace' ) delete . setProperty ( "Workspace" , wsname ) delete . execute ( ) return