Delete a Branch
Delete a branch when its work is no longer needed: an experiment was abandoned, its changes have already been transferred to master, or the branch was created by mistake.
Branch deletion is separate from the general dependency-aware deletion workflow. SysCraft first compares the branch with master and checks for changes that have not been transferred.
Availability
Deletion is available when:
- a landscape is selected;
- a working branch is selected;
- the selected branch is not master;
- the user has permission to delete branches.
The delete action is unavailable when master is selected or no landscape is selected.
Branch deletion and access to its unmerged changes are authorized separately. Deleting requires the branch-deletion permission. Opening the difference tree first requires permission to view changes in either the user's own branches or all branches.
If an active merge request has locked the branch, it cannot be deleted. Complete, reject, or cancel the merge request first so SysCraft can release the lock.
Delete the Branch
- Select the required working branch in the top bar.
- Open the branch menu.
- Select Delete.
- Verify the branch name in the Delete Branch dialog.
- Select Delete.
- Wait for the comparison to finish.
While the comparison is running, the actions are disabled and the dialog cannot be dismissed accidentally. SysCraft collects the differences between the branch and master.
If There Are No Unmerged Changes
If the branch does not differ from master, it is deleted as soon as the comparison finishes. It disappears from the list, and the user returns to an available landscape context.
This normally occurs after a complete merge or when no changes were made in the branch.
If the Branch Has Unmerged Changes
If the branch still contains changes that have not been transferred to master, normal deletion stops and the dialog displays:
- Unmerged changes found: N;
- an explanation that the branch contains changes not transferred to master;
- Show Changes;
- Cancel;
- Delete Branch.
Review Changes Before Deletion
Select Show Changes to open Branch Differences in read-only mode.
In this mode, you can:
- review the change tree between the branch and master;
- expand groups of changes;
- find an object, diagram, flow, or domain through search;
- open a visual comparison for diagrams and flows when available;
- assess which changes would be lost if the branch were deleted.
If Show Changes is unavailable or the difference tree cannot be opened, check the permission for viewing branch changes. Permission to delete a branch does not necessarily include access to its detailed changes.
The pre-deletion view does not allow you to select or merge changes. It has no selection checkboxes, selected-item counter, or Apply Changes action.
What Counts as an Unmerged Change
Every difference between the working branch and master is considered unmerged, including:
- created, changed, or deleted objects;
- relationship and interaction changes;
- created, changed, or deleted diagrams;
- changes to element visibility on diagrams;
- changes to data flows and their steps;
- property changes;
- domain changes and other system-level changes.
If part of the branch was transferred through a partial merge, the warning reports only the differences that remain.
Respond to the Warning
Keep the Changes
If the changes are still required:
- Select Show Changes and review the list.
- Close the difference view.
- Select Cancel in the deletion dialog.
- Merge the changes into master.
- After the merge, delete the branch again.
Delete the Branch and Discard the Changes
If the changes are no longer required:
- Review the list using Show Changes.
- Return to the deletion dialog.
- Select Delete Branch.
- Wait for the operation to finish.
This removes the branch and all of its remaining unmerged changes. Once confirmed, those changes will not reach master.
Edge Cases
Partially Merged Branch
If some changes have already been accepted into master, deletion reports only what remains. Confirm that none of those remaining changes is needed.
The Difference Tree Contains Deletions
Deleted objects, diagrams, or flows require special attention. Deleting the branch means those deletions will not be applied to master. If they are intended for the main architecture, merge them first.
The Branch Contains Visual Diagram Changes
Open the visual preview in the difference view. The tree shows that a change exists; the preview shows how the diagram actually changed.
Several People Worked in the Branch
Coordinate with the contributors before deleting the branch. Deletion discards the team's entire unmerged result, not just the current user's changes.
Deletion Failed
If an error occurs after confirmation, the branch remains in the list. Check the permissions and landscape availability, then retry later.
If the error is caused by a branch lock, open the merge workflow and review the active merge request. The server rejects deletion while the request keeps the branch locked, even if the user has the deletion permission.
Recommended Practice
- If SysCraft finds unmerged changes, always review them with Show Changes before deleting the branch.
- If even one change is still needed, cancel deletion and merge it.
- Delete a branch only after a complete merge or after deliberately deciding to discard everything that remains.
- After deletion, verify the branch list and context selector.