   headers: {
                    'Content-Type': 'application/json'
                }
            })
        );
        
        Promise.all(deletePromises)
            .then(responses => {
                let failedDeletes = responses.filter(r => !r.ok);
                if (failedDeletes.length === 0) {
                    alert(`Successfully deleted ${selectedIds.length} cable(s)`);
                    closeSelectiveDeleteModal();
                    window.location.reload();
                } else {
   