add delete_source_with_ip function