create  deploy

Chapter 12: Using jagtool and jagant

delete

Description

Deletes an entity from the repository.

Syntax

Local mode support: Yes.

Command line:

delete [ connect-args | local-args ] [-type type] entity

Ant build file:

<jag_delete [ type=”type” ] entity=”entity” />

Option

Description

Required

connect-args | local-args

Arguments to specify a connection to the server or to run in local mode. See “Local versus connected mode”.

Yes

type

Specify simple for simple deletion (properties files only) or full to delete all files that were created when the entity was deployed. The default is simple. For more information, see “Deleting packages, Web applications, and applications”.

entity

The identifier for the entity being deleted.

Yes

Returns

Return value

Indicates

0

The command ran successfully; the result is true/success.

1

The command ran successfully; the result is false/failure.

2

The command did not run successfully; an exception was thrown.

Examples

Example 1

This example deletes Package:SVU from the repository.

NoteWhen a package is deleted, it is also removed from any servers on which it is installed.

Example 2

This example deletes the SVULogin component from Package:SVU.





Copyright © 2005. Sybase Inc. All rights reserved. deploy