How to Delete Row using jquery Ajax

How to Delete Row using jquery Ajax

How to Delete Row using Id 



  var row = $(this).closest('tr');
            $.ajax({
                url: "/Course/Delete",
               type: "POST",
                ajaxasync: true,
                data: {Id:1},                  ///Manually provided
                success: function () {
                                      
                   row.remove();
                   location.reload();
                    alert("success");

                },
                error: function (xhr, ajaxOptions, thrownError) {
                    //On error, we alert user
                    alert(thrownError);
                }


            });