private void deleteSnippet() {
		Button commit = new ActionButton(CarbonIcons.TRASH_CAN, Lang.getBinding("dialog.confirm"), () -> {
			// Should be not-null since the delete button is disabled until the property is set.
			Snippet snippet = currentSnippet.get();
			snippetManager.removeSnippet(snippet);

			// Clear the snippet selection and content.
			resetContent();
			currentSnippet.set(null);
		});

		// Show delete prompt above the delete button
		Popover popover = new Popover(commit);
		popover.setAutoHide(true);
		popover.setArrowLocation(Popover.ArrowLocation.BOTTOM_RIGHT);
		popover.show(btnDelete);
	}
Deletes the current snippet from the manager.
recaf-ui/src/main/java/software/coley/recaf/ui/pane/editing/assembler/SnippetsPane.java