TestingAPIs is still being built. If something breaks, email support@testingapis.com.

Delete a post

DELETEhttps://api.testingapis.com/api/Posts/{id}

Parameters 1

NameTypeDescription
idrequiredpath · integer (int32)Post ID.

Responses

200
Deleted.
404
The post does not exist.
500
Unexpected server error.

Example

Request
curl -X DELETE "https://api.testingapis.com/api/Posts/16"
Response200 OK
{"message": "Post deleted successfully"}