<% content_for :context, attachment.title %>
<% content_for :page_title, "Delete attachment" %>
<% content_for :title, "Delete attachment" %>
<% content_for :title_margin_bottom, 6 %>
<% content_for :back_link do %>
  <%= render "govuk_publishing_components/components/back_link", {
    href: attachable_attachments_path(attachable)
  } %>
<% end %>

<div class="govuk-grid-row">
  <section class="govuk-grid-column-two-thirds">
    <%= form_tag [:admin, typecast_for_attachable_routing(attachable), attachment.becomes(Attachment)], method: :delete do %>
      <p class="govuk-body govuk-!-margin-bottom-7">Are you sure you want to delete this attachment?</p>

      <%= render "govuk_publishing_components/components/button", {
        text: "Delete attachment",
        destructive: true,
        margin_bottom: 8,
      } %>
    <% end %>
  </section>
</div>

<% content_for :context, attachment.title %>
<% content_for :page_title, "Delete attachment" %>
<% content_for :title, "Delete attachment" %>
<% content_for :title_margin_bottom, 6 %>

<div class="govuk-grid-row">
  <section class="govuk-grid-column-two-thirds">
    <%= form_tag [:admin, typecast_for_attachable_routing(attachable), attachment.becomes(Attachment)], method: :delete do %>
      <p class="govuk-body govuk-!-margin-bottom-7">Are you sure you want to delete this attachment?</p>

    <div class="govuk-button-group govuk-!-margin-bottom-6">
      <%= render "govuk_publishing_components/components/button", {
        text: "Delete attachment",
        destructive: true,
      } %>

      <a class="govuk-link" href="attachable_attachments_path(attachable)">Cancel</a>
    </div>
    <% end %>
  </section>
</div>

Replace attachment confirm destroy back button with cancel button
Replace attachment confirm destroy back button with cancel button

In our like for like approach we're using cancel buttons instead of back buttons in the new design system pages
