How to empty the trash on Nexus local repository ?
search cancel

How to empty the trash on Nexus local repository ?

book

Article ID: 281757

calendar_today

Updated On: 04-08-2024

Products

CA Release Automation - Release Operations Center (Nolio) CA Release Automation - DataManagement Server (Nolio)

Issue/Introduction

On NAC, the local nexus repository is installed under <ra_home>/sonatype-work/nexus. Some files could be present in directory trash.

Example :

/opt/RA/sonatype-work/nexus/storage/nolio-actions/.nexus/attributes/.nexus/trash/default_actions_group/spring-core/5.3.21/spring-core-5.3.21.jar
/opt/RA/sonatype-work/nexus/storage/nolio-actions/.nexus/attributes/.nexus/trash/default_actions_group/spring-aop/5.3.21/spring-aop-5.3.21.jar
/opt/RA/sonatype-work/nexus/storage/nolio-actions/.nexus/attributes/.nexus/trash/default_actions_group/spring-beans/5.3.21/spring-beans-5.3.21.jar
/opt/RA/sonatype-work/nexus/storage/nolio-actions/.nexus/attributes/.nexus/trash/default_actions_group/spring-jcl/5.3.21/spring-jcl-5.3.21.jar
/opt/RA/sonatype-work/nexus/storage/nolio-actions/.nexus/attributes/.nexus/trash/default_actions_group/spring-expression/5.3.21/spring-expression-5.3.21.jar
/opt/RA/sonatype-work/nexus/storage/nolio-actions/.nexus/attributes/.nexus/trash/default_actions_group/spring-context/5.3.21/spring-context-5.3.21.jar
/opt/RA/sonatype-work/nexus/storage/nolio-actions/.nexus/trash/default_actions_group/spring-core/5.3.21/spring-core-5.3.21.jar
/opt/RA/sonatype-work/nexus/storage/nolio-actions/.nexus/trash/default_actions_group/spring-aop/5.3.21/spring-aop-5.3.21.jar
/opt/RA/sonatype-work/nexus/storage/nolio-actions/.nexus/trash/default_actions_group/spring-beans/5.3.21/spring-beans-5.3.21.jar
/opt/RA/sonatype-work/nexus/storage/nolio-actions/.nexus/trash/default_actions_group/spring-jcl/5.3.21/spring-jcl-5.3.21.jar
/opt/RA/sonatype-work/nexus/storage/nolio-actions/.nexus/trash/default_actions_group/spring-expression/5.3.21/spring-expression-5.3.21.jar
/opt/RA/sonatype-work/nexus/storage/nolio-actions/.nexus/trash/default_actions_group/spring-context/5.3.21/spring-context-5.3.21.jar
/opt/RA/sonatype-work/nexus/storage/nolio-actions/.nexus/trash/.nexus/attributes/default_actions_group/spring-core/5.3.21/spring-core-5.3.21.jar
/opt/RA/sonatype-work/nexus/storage/nolio-actions/.nexus/trash/.nexus/attributes/default_actions_group/spring-aop/5.3.21/spring-aop-5.3.21.jar
/opt/RA/sonatype-work/nexus/storage/nolio-actions/.nexus/trash/.nexus/attributes/default_actions_group/spring-beans/5.3.21/spring-beans-5.3.21.jar
/opt/RA/sonatype-work/nexus/storage/nolio-actions/.nexus/trash/.nexus/attributes/default_actions_group/spring-jcl/5.3.21/spring-jcl-5.3.21.jar
/opt/RA/sonatype-work/nexus/storage/nolio-actions/.nexus/trash/.nexus/attributes/default_actions_group/spring-expression/5.3.21/spring-expression-5.3.21.jar
/opt/RA/sonatype-work/nexus/storage/nolio-actions/.nexus/trash/.nexus/attributes/default_actions_group/spring-context/5.3.21/spring-context-5.3.21.jar

How to delete these files ?

Environment

Release Automation 6.7,6.8

Resolution

1- Open the page 
 
http://NAC_NAME:8080/nexus
 
Replace NAC_NAME by the name of NAC server
 
 
2- Click on Log In on the right :
 

 
Put the Username and Password
By default the Username/Password is 

admin / nolionolio
 
 
3- Click on Repositories link and click on Trash - Empty Trash
 
 
 
4- Some files under <RA_HOME>/sonatype-work/nexus/storage/nolio-actions/.nexus/trash are deleted
 
5- Some files under <RA_HOME>/sonatype-work/nexus/storage/nolio-actions/.nexus/attributes/.nexus/trash could remain
 
Example :
/opt/RA/sonatype-work/nexus/storage/nolio-actions/.nexus/trash/.nexus/attributes/default_actions_group/spring-core/5.3.21/spring-core-5.3.21.jar
/opt/RA/sonatype-work/nexus/storage/nolio-actions/.nexus/trash/.nexus/attributes/default_actions_group/spring-aop/5.3.21/spring-aop-5.3.21.jar
/opt/RA/sonatype-work/nexus/storage/nolio-actions/.nexus/trash/.nexus/attributes/default_actions_group/spring-beans/5.3.21/spring-beans-5.3.21.jar
/opt/RA/sonatype-work/nexus/storage/nolio-actions/.nexus/trash/.nexus/attributes/default_actions_group/spring-jcl/5.3.21/spring-jcl-5.3.21.jar
/opt/RA/sonatype-work/nexus/storage/nolio-actions/.nexus/trash/.nexus/attributes/default_actions_group/spring-expression/5.3.21/spring-expression-5.3.21.jar
/opt/RA/sonatype-work/nexus/storage/nolio-actions/.nexus/trash/.nexus/attributes/default_actions_group/spring-context/5.3.21/spring-context-5.3.21.jar

They are json files and they could be deleted manually.

Example :

cd /opt/RA/sonatype-work/nexus/storage/nolio-actions/.nexus/attributes/.nexus/trash/default_actions_group
rm -Rf spring*