removeVHostAlias()
59
Parameters
app_name
A string that contains the name of the application or instance of the application
you want to remove, in the form
application_name
[/
instance_name
]
.
Returns
If the call succeeds, the server sends a reply information object with a
level
property of
status
and a
code
property of
NetConnection.Call.Success
.
If the call fails, the server sends a reply information object with a
level
property of
error
and a
code
property of
NetConnection.Admin.Command.Failed
or a more specific value, if
available. Some objects might also have a
description
property that contains a string
describing the cause of the failure.
Description
Removes the specified application or instance of an application from the virtual host. First, all
instances of the specified application are unloaded. Then the application directory is removed
from the virtual host. If you specify an instance of an application, only that instance is
unloaded and removed, and all streams and shared objects for that instance are deleted.
Example
The following example shows how you remove the entire application
ChatApp
and then
shows how you remove a specific instance
Instance1
of an application
ChatApp
.
nc = new NetConnection();
nc.connect("rtmp://localhost:1111/admin", "JGarcia", "ezcabby1");
/* Removes the application along with all instances of the application */
nc.call("removeApp", new onRemoveApp(), "ChatApp");
/* Removes only the specified instance */
nc.call("removeApp", new onRemoveApp(), "ChatApp/Instance1");
See also
addApp()
removeVHostAlias()
Availability
■
Flash Player 6.
■
Flash Media Server 2.