ami_SessionDestroy() Function Declaration ami_Error ami_SessionDestroy( ami_Session inAmiSession ); Purpose Destroys the AMI session. The AMI session (and associated handle) is no longer valid. If the AMI session is active it will be stopped prior to being destroyed. Parameters Parameter Description inAmiSession AMI session parameter.