add delete_domain function