using (SqlConnection connection = CreateConnection())
using (SqlCommand command = new SqlCommand("Delete from Movies WHERE Id_Movies = @Id", connection))
{
command.Parameters.AddWithValue("@Id", TxtId.Text);
connection.Open();
command.ExecuteNonQuery();
}
delete sql syntax is
DELETE FROM table_name
WHERE some_column=some_value;
And also give correct parameter name.