This can be a demo code of deletion. It will only output 1 or not one other web coding. But I get the entire admin page HTML.

$id = $_GET['id'];
if($table->delete($id))
    echo 1;
else
    echo 0;

The javascript should receive or 1 with respect to the remove result

<script type="text/javascript" language="javascript">
jQuery(document).ready(function(){
    jQuery(".drecipient").click(function(){
        var answer = confirm("Do you really want to delete this record?");
        var id = jQuery(this).attr('id').replace('del_','');
        if(answer)
        {
            url = '?page=manage-recipients&mode=delete&id=' + id;
           jQuery.get(url,function(res){
               console.log(res);
               if(res == 1)
                   jQuery("#recp"+id).slideUp(300,function(){
                       $(this).remove();
                   });
           });
        }
    });
});
</script>

However the javascript brings the entire admin panel code rather than only one or How do i take away the admin panel layout?

// Admin configurations
function adminMenu()
{
    $admin_url = get_site_url('', '', 'admin');
    add_menu_page("Contact Form Generator & CSV Exporter", "Contact CSV", 1, "contact-csv", "lzcontactcsvAdmin");
    add_submenu_page('contact-csv', 'Contact Form Generator & CSV Exporter :: Manage Recipients', 'Manage Recipients', 1, 'manage-recipients', 'manageRecipients');
    add_submenu_page('contact-csv', 'Contact Form Generator & CSV Exporter :: Add Recipients', 'Add Recipients', 1, 'add-recipients', 'addRecipients');
}

I've attached this function such as this

// add to hook
add_action('admin_menu', 'adminMenu');