diff --git a/components/test/data/payments/alicepay.test/app1/index.html b/components/test/data/payments/alicepay.test/app1/index.html
deleted file mode 100644
index d81ba41722f098..00000000000000
--- a/components/test/data/payments/alicepay.test/app1/index.html
+++ /dev/null
@@ -1,17 +0,0 @@
-
-
-
-
-
-
- Alice Pay 1
-
-
-
-
-
-
diff --git a/components/test/data/payments/alicepay.test/app1/index.js b/components/test/data/payments/alicepay.test/app1/index.js
deleted file mode 100644
index 893c00adf7a151..00000000000000
--- a/components/test/data/payments/alicepay.test/app1/index.js
+++ /dev/null
@@ -1,74 +0,0 @@
-/*
- * Copyright 2017 The Chromium Authors
- * Use of this source code is governed by a BSD-style license that can be
- * found in the LICENSE file.
- */
-
-/**
- * Prints output.
- * @param {String} src - Where the message is coming from.
- * @param {String} txt - The text to print.
- */
-function output(src, txt) {
- // Handle DOMException:
- if (txt.message) {
- txt = txt.message;
- }
- txt = src + ': ' + txt;
- if (!domAutomationController) {
- txt += ' window.domAutomationController not found.';
- } else {
- domAutomationController.send(txt);
- }
- console.warn(txt);
-}
-
-/**
- * Installs a payment app.
- * @param {String} method - The payment method name that this app supports.
- */
-function install(method) {
- if (!navigator.serviceWorker) {
- output('install()', 'ServiceWorker API not found.');
- return;
- }
-
- navigator.serviceWorker.getRegistration('app.js')
- .then((registration) => {
- if (registration) {
- output(
- 'serviceWorker.getRegistration()',
- 'The ServiceWorker is already installed.');
- return;
- }
- navigator.serviceWorker.register('app.js')
- .then(() => {
- return navigator.serviceWorker.ready;
- })
- .then((registration) => {
- if (!registration.paymentManager) {
- output(
- 'serviceWorker.register()',
- 'PaymentManager API not found.');
- return;
- }
-
- registration.paymentManager.instruments
- .set('123456', {name: 'Alice Pay', method: method})
- .then(() => {
- output(
- 'instruments.set()',
- 'Payment app for "' + method + '" method installed.');
- })
- .catch((error) => {
- output('instruments.set()', error);
- });
- })
- .catch((error) => {
- output('serviceWorker.register()', error);
- });
- })
- .catch((error) => {
- output('serviceWorker.getRegistration()', error);
- });
-}
diff --git a/components/test/data/payments/alicepay.test/app2/index.html b/components/test/data/payments/alicepay.test/app2/index.html
deleted file mode 100644
index bb0b9f029004fb..00000000000000
--- a/components/test/data/payments/alicepay.test/app2/index.html
+++ /dev/null
@@ -1,17 +0,0 @@
-
-
-
-
-
-
- Alice Pay 2
-
-
-
-
-
-
diff --git a/components/test/data/payments/alicepay.test/app2/index.js b/components/test/data/payments/alicepay.test/app2/index.js
deleted file mode 100644
index 893c00adf7a151..00000000000000
--- a/components/test/data/payments/alicepay.test/app2/index.js
+++ /dev/null
@@ -1,74 +0,0 @@
-/*
- * Copyright 2017 The Chromium Authors
- * Use of this source code is governed by a BSD-style license that can be
- * found in the LICENSE file.
- */
-
-/**
- * Prints output.
- * @param {String} src - Where the message is coming from.
- * @param {String} txt - The text to print.
- */
-function output(src, txt) {
- // Handle DOMException:
- if (txt.message) {
- txt = txt.message;
- }
- txt = src + ': ' + txt;
- if (!domAutomationController) {
- txt += ' window.domAutomationController not found.';
- } else {
- domAutomationController.send(txt);
- }
- console.warn(txt);
-}
-
-/**
- * Installs a payment app.
- * @param {String} method - The payment method name that this app supports.
- */
-function install(method) {
- if (!navigator.serviceWorker) {
- output('install()', 'ServiceWorker API not found.');
- return;
- }
-
- navigator.serviceWorker.getRegistration('app.js')
- .then((registration) => {
- if (registration) {
- output(
- 'serviceWorker.getRegistration()',
- 'The ServiceWorker is already installed.');
- return;
- }
- navigator.serviceWorker.register('app.js')
- .then(() => {
- return navigator.serviceWorker.ready;
- })
- .then((registration) => {
- if (!registration.paymentManager) {
- output(
- 'serviceWorker.register()',
- 'PaymentManager API not found.');
- return;
- }
-
- registration.paymentManager.instruments
- .set('123456', {name: 'Alice Pay', method: method})
- .then(() => {
- output(
- 'instruments.set()',
- 'Payment app for "' + method + '" method installed.');
- })
- .catch((error) => {
- output('instruments.set()', error);
- });
- })
- .catch((error) => {
- output('serviceWorker.register()', error);
- });
- })
- .catch((error) => {
- output('serviceWorker.getRegistration()', error);
- });
-}
diff --git a/components/test/data/payments/app_store_billing_tests/index.html b/components/test/data/payments/app_store_billing_tests/index.html
index cb1be676f96ccc..df66c5e5c5bf06 100644
--- a/components/test/data/payments/app_store_billing_tests/index.html
+++ b/components/test/data/payments/app_store_billing_tests/index.html
@@ -5,7 +5,6 @@
-
diff --git a/components/test/data/payments/app_store_billing_tests/index.js b/components/test/data/payments/app_store_billing_tests/index.js
index 81c4d5552f6359..90ea1ff9397de2 100644
--- a/components/test/data/payments/app_store_billing_tests/index.js
+++ b/components/test/data/payments/app_store_billing_tests/index.js
@@ -8,33 +8,6 @@ const methodName = window.location.origin + '/method_manifest.json';
let request;
let supportedInstruments = [];
-/**
- * Install a payment app.
- * @return {string} - a message indicating whether the installation is
- * successful.
- */
-async function install() {
- info('installing');
-
- await navigator.serviceWorker.register('empty_app.js');
- const registration = await navigator.serviceWorker.ready;
- if (!registration.paymentManager) {
- return 'No payment handler capability in this browser. Is' +
- 'chrome://flags/#service-worker-payment-apps enabled?';
- }
-
- if (!registration.paymentManager.instruments) {
- return 'Payment handler is not fully implemented. ' +
- 'Cannot set the instruments.';
- }
- await registration.paymentManager.instruments.set('instrument-key', {
- // Chrome uses name and icon from the web app manifest
- name: 'MaxPay',
- method: methodName,
- });
- return 'success';
-}
-
/**
* Add a payment method to the payment request.
* @param {string} method - the payment method.
diff --git a/components/test/data/payments/bobpay.test/app1/index.html b/components/test/data/payments/bobpay.test/app1/index.html
index c85a870775a178..9edf87d71232ad 100644
--- a/components/test/data/payments/bobpay.test/app1/index.html
+++ b/components/test/data/payments/bobpay.test/app1/index.html
@@ -9,9 +9,5 @@
Bob Pay 1
-
-
-
-