si quieres obtener el valor de el atributo href solo tienes que hacer $(this).attr('href'), si quieres extraer el id tienes que hacer un de la url, puede usar esto var id= ruta.substring(ruta.lastIndexOf("="),ruta.length); es decir te quedaria asi:
$(".delete").click(function (){
var id_pagina = $(this).attr('href);
var id = id.substring(id.lastIndexOf("="),id.length);
});
No lo e probado pero te debe funcionar