The drop service command removes a user-defined Web service from the current database. Both the metadata and the corresponding stored procedure are removed.
drop service service-name
drop service sp_who_service
You must undeploy a user-defined Web service before you can drop it.
Web Services Users Guide
sp_webservices in Reference Manual: Procedures
The permission checks for drop service differ based on your granular permissions settings.
Setting | Description |
---|---|
Enabled | With granular permissions enabled, you must be the service owner or a user with drop any procedure privilege. |
Disabled | With granular permissions disabled, you must be a user with sa_role. |