Hosting: NodeJS
Clear Node.js runtime logs
Changed onEmpties the Node.js application's runtime log file. This cannot be undone, so confirm with the user before calling it. Returns success even when no log file exists yet.
Use it before reproducing a problem so the next Get Node.js runtime logs call returns only fresh entries; start that call with period again instead of reusing a from_line from before the clear.
delete/api/hosting/v1/accounts/{username}/websites/{domain}/nodejs/runtime-logs
Request
- Base URL: https://developers.hostinger.com
- URL: https://developers.hostinger.com/api/hosting/v1/accounts/{username}/websites/{domain}/nodejs/runtime-logs
- Auth: HTTP bearer
Path parameters
usernamestring required
Example:u123456789
domainstring required
Example:mydomain.tld
Domain name
Response
Success empty response
Example response
{
"message": "Request accepted"
}Changes
- info
endpoint added
- info