Skip to content

Latest commit

 

History

History
58 lines (39 loc) · 1.01 KB

delete.md

File metadata and controls

58 lines (39 loc) · 1.01 KB

Delete Torrent By Hash

Delete torrent by 40 characters long infohash.

URL : /api/delete/{hash}

Method : GET

Query Parameters :

Parameter Type Description
hash string 40 characters long infohash.

Success Response

Code : 200 OK

Main Object :

Name Type Description
success bool Indicates whether the query was successful.
message string Text message that describes the response.

Error Response

Code : 404 (Not Found)

Main Object :

Name Type Description
success bool Indicates whether the query was successful.
message string Text message that describes the response.

Examples

Request :

GET http://localhost:9000/api/delete/08ada5a7a6183aae1e09d831df6748d566095a10

Success Response :

{
	"success": true,
	"message": "Torrent deleted."
}

Error Response :

{
	"success": false,
	"message": "Torrent not found."
}