Junos Space SDK > Developer Guides > Junos Space Application Developer Guide > Programming with the Junos Space SDK > Using the Junos Space SDK Plug-in > Creating and Testing Junos Space Applications

Deleting a Project from a Junos Space Application

You can delete any project that is not required from a Junos Space Application. In case your application is already installed and later on you delete some projects from it, you should uninstall the old application and clean the modified build application before re-installing it.

To delete a project from Junos Space Application in the SDK plug-in:

  1. Right-click on the project, and select the Delete submenu item.
  2. Select the "Delete project contents on disk (cannot be undone)" check box and click OK. This will also delete all disk files associated with this project.

Deleting Projects and Cleaning References

Projects created in the Junos Space Application are referenced to each other as specified during application or additional project creation. Therefore, during deletion, a project might encounter a missing reference in the existing projects within the workspace, resulting in compilation errors. This must be resolved manually by removing the missing references and dependencies from existing projects. To clean the dependencies and references of deleted projects, follow the steps give below.

Resolving the references to the deleted project

  1. Open the EAR Project's EarContent\META-INF\application.xml file and remove the module entry of the deleted project from it, if present.
  2. Open the EAR Project's .package file and remove the package entry of the deleted project from it, if present.
  3. Resolve the reference of the deleted project's resources such as classes, libraries, and other files from existing projects.

Resolving the dependencies of the deleted project

  1. Right-click on the project displaying a missing reference error showing a red cross.
  2. Click Build Path > Configure Build Path. The properties for the selected project are displayed.

  3. In the Projects tab, select the appropriate project.

  4. Click the Remove button. The project with missing references is deleted.

  5. Click OK.
  6. Repeat steps 1 through 5 for each project that gives a compilation error.