i just added this to the main script.it works fine
function remove()
{
ent_remove(me);
}