def METHOD_NAME(remote_files):
	"""Delete specified objects identified by keys in the backups bucket."""
	from boto3 import resource
	from press.utils import chunk
	press_settings = frappe.get_single("Press Settings")
	remote_files = list(set([x for x in remote_files if x]))
	if not remote_files:
		return
	buckets = {bucket: [] for bucket in frappe.get_all("Backup Bucket", pluck="name")}
	buckets.update({frappe.db.get_single_value("Press Settings", "aws_s3_bucket"): []})
	[
		buckets[bucket].append(file)
		for file, bucket in frappe.db.get_values(
			"Remote File",
			{"name": ("in", remote_files), "status": "Available"},
			["file_path", "bucket"],
		)
	]
	for bucket_name in buckets.keys():
		s3 = resource(
			"s3",
			aws_access_key_id=press_settings.offsite_backups_access_key_id,
			aws_secret_access_key=press_settings.get_password(
				"offsite_backups_secret_access_key", raise_exception=False
			),
			endpoint_url=frappe.db.get_value("Backup Bucket", bucket_name, "endpoint_url")
			or "https://s3.amazonaws.com",
		)
		bucket = s3.Bucket(bucket_name)
		for objects in chunk([{"Key": x} for x in buckets[bucket_name]], 1000):
			response = bucket.delete_objects(Delete={"Objects": objects})
			response = pprint.pformat(response)
			frappe.get_doc(
				doctype="Remote Operation Log", operation_type="Delete Files", response=response
			).insert()
	frappe.db.set_value(
		"Remote File", {"name": ("in", remote_files)}, "status", "Unavailable"
	)
	return remote_files