fnDeleteRow()
wants a <tr>
element as parameter. When clicking the button in your current code, this
will be referring to the clicked input element. So what you need to do is find the <tr>
element of the button and send that in:
$(document).ready(function () {
var table = $('#myTableRooms').DataTable();
$(table).on( 'click', 'input', function () {
var row = $(this).closest("tr");
table.fnDeleteRow(row);
});
});