revampled delete_targe method