Jump to content

Delete Service


Stealth

Recommended Posts

Like this:

Dim service As New TCAdminSDK.Objects.Service
service.ServiceID = "TCXXXXXXXXX"
'Find in the database
If service.Find Then
 'Uninstall the service. True = delete game server files.
 If service.Uninstall(True) Then
   'Delete from the database
   If service.Delete Then
     'Success
   End If
End If

Link to comment
Share on other sites

Like this:

Dim service As New TCAdminSDK.Objects.Service
service.ServiceID = "TCXXXXXXXXX"
'Find in the database
If service.Find Then
 'Uninstall the service. True = delete game server files.
 If service.Uninstall(True) Then
   'Delete from the database
   If service.Delete Then
     'Success
   End If
End If

 

 

Thanks L! Works a treat -though you missed a closing End If ;)

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

  • Who's Online   0 Members, 0 Anonymous, 19 Guests (See full list)

    • There are no registered users currently online
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Terms of Use