The following code uses Stingray's RESTful API to delete a pool. The code is written in TrafficScript. This rule deletes the "tstest" pool created by the stmrest_addpool example. To delete a resource you do a HTTP DELETE on the URI for the resource. If the delete is successful a 204 HTTP status code will be returned. Subroutines in stmrestclient are used to do the actual RESTful API calls. stmrestclient is attached to the article Tech Tip: Using the RESTful Control API with TrafficScript - Overview.