tencent cloud

All product documents
Tencent Cloud Observability Platform
http.delete
Last updated: 2025-03-11 19:41:09
http.delete
Last updated: 2025-03-11 19:41:09
http.delete is used to initiate DELETE requests.
delete(url:string, request?: Request): Response

Parameters

Parameter
Type
Description
url
string
URL string.
request
Request
Optional; request object. The method and url fields in the request object will not override the method and url in the current method http.delete.

Return

Type
Description
Response
Response object.

Samples

Initiate a DELETE request.
import http from 'pts/http';

export default function () {
const data = { user_id: '12345' };
const req = {
query: data,
};
const resp = http.delete('http://httpbin.org/delete', req);
console.log(resp.json().args.user_id); // 12345
}

Was this page helpful?
You can also Contact Sales or Submit a Ticket for help.
Yes
No

Feedback

Contact Us

Contact our sales team or business advisors to help your business.

Technical Support

Open a ticket if you're looking for further assistance. Our Ticket is 7x24 avaliable.

7x24 Phone Support