add delete agent functional