Sun Java System Web Server 6.1 SP9 Administrator's Guide

delete Command

Use the delete command to delete classes of virtual servers, virtual servers, and listen sockets.

Options

Use the options shown in Options with the delete command to delete classes.

Table A–13 Delete command options

Option  

Value  

-c 

Deletes the specified virtual server class. 

-l 

Deletes the specified listen socket IDs 

-v 

Deletes the specified virtual servers. 

-r 

Deletes the specified resource. 

Delete Class

Use this option of the delete command to delete a virtual server class.

Syntax

HttpServerAdmin delete -c -cl classname -d server_root -sinst http_instance

Parameters

Use the parameters shown in Options with the delete command to delete classes.

Table A–14 Delete class parameters

parameter  

Value  

-c l class

The class name you want to delete. 

Example


HttpServerAdmin delete -c -cl class1 -d /export/sun/server6 -sinst https-sun.com

               

Delete Listen Socket

Use this option of the delete command to delete a listen socket.

Syntax

HttpServerAdmin delete -l -id listen_socket -d server_root -sinst http_instance

Parameters

Use the parameters shown in Options with the delete command to delete classes.

Table A–15 Delete class parameters

parameter  

Value  

-id listen_socket

The ID of the listen socket you want to delete. 

Example


HttpServerAdmin delete -l -id ls3 -d /export/sun/server6 -sinst https-sun.com

               

Delete Virtual Server

Use this option of the delete command to delete a virtual server.

Syntax

HttpServerAdmin delete -v -id virtual_server -cl classname -d server_root -sinst http_instance

Parameters

Use the parameters shown in Options with the delete command to delete a virtual server.

Table A–16 Delete virtual server parameters

parameter  

Value  

-id virtual_server

The virtual server ID you want to delete 

-cl class

The class the virtual server belongs to. 

Example

HttpServerAdmin delete -v -id vs3 -cl class1 -d 
/export/sun/server6 -sinst https-sun.com

Delete JDBC Connection Pool

Use this option of the delete command to delete a connection pool.

Syntax

HttpServerAdmin delete -r jdbcconnectionpoolname

Parameters

Use the parameters shown in Options with the delete command to delete a connection pool.

Table A–17 Delete connection pool parameters

parameter  

Value  

connectionpoolname

The name of the connection pool you want to delete 

Example


HttpServerAdmin delete -r connpool

               

Delete JNDI Resource

Use this option of the delete command to delete a JNDI resource.

Syntax

HttpServerAdmin delete -r jndiname

Parameters

Use the parameters shown in Options with the delete command to delete a JNDI resource.

Table A–18 Delete JNDI resource parameters

parameter  

Value  

jndiname

The JNDI name of the resource you want to delete 

Example


HttpServerAdmin delete -r testresource