For the complete documentation index, see llms.txt. This page is also available as Markdown.

Delete website redirect

Permanently deletes the redirect identified by its source URL. Pass the from value exactly as returned by the list redirects endpoint.

Delete website redirect

delete

Permanently deletes the redirect identified by its source URL.

Pass the from value exactly as returned by the list redirects endpoint.

Authorizations
AuthorizationstringRequired

API Token authentication

Path parameters
usernamestringRequiredExample: u123456789
domainstringRequired

Domain name

Example: mydomain.tld
Query parameters
fromstring · uri · max: 255Required

Source URL returned by the list redirects endpoint.

Example: https://example.com/old-page
Responses
200

Success empty response

application/json
messagestringOptionalExample: Request accepted
delete/api/hosting/v1/accounts/{username}/websites/{domain}/redirects
DELETE /api/hosting/v1/accounts/{username}/websites/{domain}/redirects?from=https%3A%2F%2Fexample.com%2Fold-page HTTP/1.1
Host: developers.hostinger.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
  "message": "Request accepted"
}

Last updated

Was this helpful?