Parameters
A string that contains the name of the application or instance of the application
app_name
you want to remove, in the form
Returns
If the call succeeds, the server sends a reply information object with a
and a
property of
status
code
If the call fails, the server sends a reply information object with a
and a
property of
code
available. Some objects might also have a
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
shows how you remove a specific instance
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.
application_name[/instance_name]
NetConnection.Call.Success
NetConnection.Admin.Command.Failed
description
Instance1
.
level
.
property of
level
or a more specific value, if
property that contains a string
ChatApp
of an application
ChatApp
removeVHostAlias()
property of
error
and then
.
59
Need help?
Do you have a question about the FLASH MEDIA SERVER 2-SERVER MANAGEMENT ACTIONSCRIPT LANGUAGE and is the answer not in the manual?