                 alert(`Deleted ${responses.length - failedDeletes.length} of ${responses.length} cables. Some deletions failed.`);
                    closeSelectiveDeleteModal();
                    window.location.reload();
                }
            })
            .catch(error => {
                console.error('Error deleting selected cables:', error);
                alert('Error deleting cables');
            });
    }

    function deleteCable(cableId) {
        if (!confirm('Are you sure you wan