Hostinger API icon

Hostinger API

Interact with the Hostinger API

Actions100

VPS Docker Manager → Delete Project

AI-generated

Overview

This node operation deletes a Docker project from a specified virtual machine (VPS) managed via Hostinger's VPS Docker Manager API. It is useful for users who want to programmatically remove Docker projects running on their VPS instances, such as cleaning up unused projects or managing deployments.

Use Case Examples

  1. Deleting a Docker project named 'my-project' from a VPS with ID 'vm-12345' to free up resources.
  2. Automating the removal of outdated Docker projects during a CI/CD pipeline.

Properties

Name Meaning
Virtual Machine ID The unique identifier of the VPS where the Docker project is hosted. This is required to specify which VPS the project belongs to.
Docker Project Name The name of the Docker project to be deleted from the specified VPS. This identifies the specific project to remove.

Output

JSON

  • response - The JSON response from the Hostinger API after attempting to delete the Docker project, indicating success or failure.

Dependencies

  • Hostinger API with authentication credentials

Troubleshooting

  • Ensure the Virtual Machine ID and Docker Project Name are correct and correspond to existing resources on the Hostinger VPS.
  • Check that the API credentials used have sufficient permissions to delete Docker projects.
  • Common errors include 'Unsupported operation' if the operation name is incorrect, or HTTP errors if the VPS or project does not exist or the API call fails.

Links

Discussion