Delete Client

Command Execution

You can permanently delete any older version of the client component in your Catalyst project using the CLI. You can choose to delete the client from the remote console or from your local project directory while executing this command. You can also delete a client version from the console through Web Client Hosting.

Note:
  • You will not be able to delete the client version that is currently live. You can only delete a version that is not currently hosted live.

  • If a client version exists in both locations, it will only be deleted from the location you choose. For example, even if you delete the client version from the remote console, it will still be present in your local project directory until you delete it from the local machine separately.

  1. To delete an older version of your client component from the CLI, execute the following command from the project directory structure:
copy
$
catalyst client:delete

  1. The CLI will ask you to choose between the client in the remote console or the client in your local project directory. Select an option and press Enter .
    Delete Client from CLI

  1. The CLI will display all the versions of your web application that have previously been hosted. Select any version from the list, other than the live version, then press Enter .
    Delete Client from CLI

    The selected version will then be deleted from your Catalyst project from the chosen location.Delete Client from CLI


Note: You can use the catalyst pull command to pull resources from the remote console to the local directory, or catalyst deploy to deploy resources to the remote console from the local directory if you require synchronization.

You can also directly specify the client version to be deleted in the following way:

copy
$
catalyst client:delete [client_version]

For example:

copy
$
catalyst client:delete 1.0.0

The CLI will then prompt you to select between the remote console or the local directory, then ask you for the delete confirmation in the same manner.


Delete Client Options

You can directly choose to list the versions of the client in either the remote console or in your local project directory to delete using the respective options.

To list the client versions available in your local project directory, execute the catalyst client:delete command as follows:

copy
$
catalyst client:delete --local

To list the client versions available in the remote console of your project, execute the catalyst client:delete command as follows:

copy
$
catalyst client:delete --remote

The CLI will list the client versions accordingly, and you can delete the required version as explained previously.

You can also directly delete a version from the remote console or the local directory as shown below:

copy
$
catalyst client:delete 1.0.0 --remote

Note: If you are a Visual Studio Code IDE user, you can install the Catalyst Tools extension, and perform CLI operations using your IDE in place of the CLI. Steps to set up your Client components using Visual Studio Code IDE can be found here

Last Updated 2024-01-09 17:07:13 +0530 +0530