diff --git a/InvenTree/company/templates/company/company_base.html b/InvenTree/company/templates/company/company_base.html
index 88b9f2958d..dcf7d9d3a4 100644
--- a/InvenTree/company/templates/company/company_base.html
+++ b/InvenTree/company/templates/company/company_base.html
@@ -126,11 +126,11 @@
$('#company-delete').click(function() {
- launchModalForm(
- "{% url 'company-delete' company.id %}",
- {
- redirect: "{% url 'company-index' %}"
- });
+ constructForm('{% url "api-company-detail" company.pk %}', {
+ method: 'DELETE',
+ title: '{% trans "Delete Company" %}',
+ redirect: '{% url "company-index" %}',
+ });
});
function reloadImage(data) {
diff --git a/InvenTree/company/templates/company/delete.html b/InvenTree/company/templates/company/delete.html
deleted file mode 100644
index 3236a7a58d..0000000000
--- a/InvenTree/company/templates/company/delete.html
+++ /dev/null
@@ -1,21 +0,0 @@
-{% extends "modal_delete_form.html" %}
-
-{% load i18n %}
-
-{% block pre_form_content %}
-
-{% blocktrans with company.name as name %}Are you sure you want to delete company '{{ name }}'?{% endblocktrans %}
-
-
-
-{% if company.supplied_part_count > 0 %}
-
{% blocktrans with company.supplied_part_count as count %}There are {{ count }} parts sourced from this company.
-If this supplier is deleted, these supplier part entries will also be deleted.{% endblocktrans %}