target delete function.