Deleting a Replication Agent instance

You can delete a Replication Agent instance at any time by invoking the ra_admin utility with the -d option.

Before you delete a Replication Agent instance, you should:

StepsTo delete a Replication Agent instance

  1. Open a window with an operating system prompt.

  2. Use the following command to make the Replication Agent bin directory the current directory:

    cd \%SYBASE%\rax-12_5\bin
    

    where %SYBASE% is the Replication Agent installation directory.

  3. At the operating system prompt, invoke the ra_admin utility with the -d option to delete a Replication Agent instance:

    ra_admin -d inst_name
    

    where inst_name is the name of the Replication Agent instance you want to delete.

    After you invoke the ra_admin utility with the -d option, the following message appears:

    Are you sure you want to delete the Replication Agent instance inst_name? [y/n]
    
  4. Enter y to delete the Replication Agent instance.

    After the instance is deleted, the operating system prompt returns.

    If the instance is running, you will receive an error message:

    Cannot delete Replication Agent instance 'inst_name' because it is currently running.
    

    NoteTo delete an instance that is running, shutdown the instance first by logging into its administrative port and using the shutdown command, then delete it. See “Shutting down a Replication Agent instance” for more information.

  5. Verify that the Replication Agent instance was deleted.

    There are several different ways to verify that a Replication Agent instance was deleted properly.