Bitbucket Data Center icon

Bitbucket Data Center

Interact with Bitbucket Data Center API

Actions29

Overview

This node integrates with the Bitbucket Data Center API to manage projects, repositories, pull requests, branches, commits, and users. Specifically for the Project - Delete operation, it allows users to delete an existing project from their Bitbucket Data Center instance.

Typical use cases include automating project lifecycle management within Bitbucket Data Center, such as cleaning up obsolete projects or integrating project deletion into larger DevOps workflows. For example, after archiving a project’s code and data externally, this node can be used to programmatically remove the project from Bitbucket.

Properties

Name Meaning
Authentication Method of authentication to use: either "Personal Access Token" or "Basic Auth".
Project The key of the project to delete. This is selected from a dynamically loaded list of projects available in the Bitbucket Data Center instance.

Output

The output JSON for the Delete Project operation is a simple object indicating success:

{
  "success": true
}

This confirms that the project was successfully deleted. No additional project details are returned.

The node does not output binary data for this operation.

Dependencies

  • Requires access to a Bitbucket Data Center server.
  • Requires credentials configured in n8n for authentication, either via a personal access token or basic authentication.
  • The node uses Bitbucket Data Center REST API endpoints under /rest/api/1.0/projects/{projectKey} for deleting projects.

Troubleshooting

  • Common issues:

    • Invalid or missing project key: Ensure the project key exists and is correctly selected.
    • Insufficient permissions: The API user must have rights to delete projects in Bitbucket Data Center.
    • Network or server errors: Verify connectivity and that the Bitbucket Data Center server URL is correct.
  • Error messages:

    • Bitbucket Data Center API request failed: ... indicates an issue with the API call, such as authentication failure or invalid parameters.
    • The operation "delete" is not supported for resource "project" would occur if the operation parameter is incorrect (unlikely here since it's fixed).
  • Resolution:

    • Double-check credentials and permissions.
    • Confirm the project key is valid and the project exists.
    • Review network settings and server availability.

Links and References


This summary focuses on the Project - Delete operation as requested, based on static analysis of the provided source code and input properties.

Discussion