cancel
Showing results for 
Search instead for 
Did you mean: 

Delete project package!!!

Former Member
0 Kudos

Hello,

Is there anyway to delete the project package from the content folder(not sub-packages)?

Thanks

Avijit

Accepted Solutions (1)

Accepted Solutions (1)

thomas_jung
Developer Advocate
Developer Advocate
0 Kudos

You can delete the entire project (including all packages) with the following steps:

Deleting a project including the entire contents currently requires the following steps:

  • The project needs to be imported in the Project Explorer. Select the project in the Project Explorer and press Delete. On the popup mark the checkbox Delete project contents on disk to remove the entire project contents from your local disk.
  • Now switch to the HANA Repository Browser and open the corresponding package (the package representing the project root folder). All files contained in the package including its sub-packages are in state inactive deletion - the files are decorated accordingly.
  • Select the package and choose Activate from the context menu. The deletion gets activated - all files will be deleted from the HANA Repository. After refreshing the package, the package including its sub-packages will be empty.
  • Select the package and choose Delete - the package including its sub-packages gets deleted.
Former Member
0 Kudos

Hi Thomas,

I've followed the above steps, but still I am getting error while deleting the package from the repository workspace. I am surprised to see that old project packages are showing in my new repository workspace root folder. Whereas I have deleted the whole project  and also checked in my local machine. My old projects doesnt exist. But I can see the old project packages are still in new project repository workspace root folder. The following error I am getting while Select the package and choose Activate from the context menu,

"An internal error occurred during: "Activating packages".

At least one resourceId is required"


P2002073028
Explorer
0 Kudos

Hello,

          Even i am getting the same error, any solution. ?

jmsrpp
Advisor
Advisor
0 Kudos

This happened to me as well ... specifically after I had already deleted the project from my local drive.  The error was:

11:07:59 >> Error while deleting package:

Repository: Package is not empty (contains development objects); workspaces: River_Tutorials


I was able to fix it by following the instructions Thomas provided above with one small caveat ... here are the steps I followed and the root cause:

  1. From the Repositories View in HANA Studio, recreate a Repository Workspace with the name mentioned in the error above, in this case River_Tutorials.  This step creates the .project file necessary to Check Out and Import the project from HANA.
  2. Right-click the package you wish to delete and select Check Out and Import Projects.  Import the project into your Project Explorer.
  3. Go to the Project Explorer view, right-click the project and check under the Team command to see if you have any resources that need to be Activated.  Activate them if needed to synch the HANA repository with the state of your local environment.
  4. Right-click the Project and select Delete.  Check the 'Delete project contents on disk' option.
  5. Return to the Repositories view, right-click the package you wish to delete and select Delete.

In my case, the problem was caused by River code that had created tables with data in them.  This caused a constraint violation when I tried to delete the RDL code w/o first truncating or deleting the underlying tables.

Former Member
0 Kudos

James

Worked for me Thanks.

Answers (1)

Answers (1)

pfefferf
Active Contributor
0 Kudos

Hi,

go to the SAP HANA Development perspective. Then go to the SAP HANA Repository tree and remove the package folder. Afterwards activate your changes.

Regards

Former Member
0 Kudos

HI,

Before creating this thread I had tried a lot.. But I couldnt delete it.

it shows the following error

"Repository request failed; cause: Repository: Package is not empty (contains development objects); workspaces: demo_repo, code: 40,133, argument: "

earlier I had created my workspaces called "demo_repo". I have deleted that and created a new one.

regards

Avi

Former Member
0 Kudos

If you are running HANA SP6 you can delete the package contents from the web interface. To access the web interface make sure that either of these packages are deployed to your HANA server -

for IDE lite --> sap > hana > xs > editor

for IDE main --> sap > hana > xs > ide

if these are not deployed you will find these delivery units on the server side in /usr/sap/SID/SYS/global/hdb/content

If either/both of the packages are deployed you can use either one to delete contents in the packages, please be aware that if these are still contained in your projects, you have to fix the inconsistencies that may occur after.

To access IDE lite --> http://<servername>:<port>/sap/hana/xs/editor

To access IDE main  --> http://<servername>:<port>/sap/hana/xs/ide