# \#scripts

**URL:** https://community.sonatype.com/tag/scripts/146.md

[Latest](https://community.sonatype.com/latest.md) · [Categories](https://community.sonatype.com/categories.md) · [Tags](https://community.sonatype.com/tags.md)

---

## [Modifying the proxies blocked status via scripting is not being retained](https://community.sonatype.com/t/modifying-the-proxies-blocked-status-via-scripting-is-not-being-retained/14434)

<div class="topic-metadata">

**Author:** [@chris.raposo](https://community.sonatype.com/u/chris.raposo)\
**Replies:** 2\
**Last updated:** [February 20, 2025, 9:08pm UTC](https://community.sonatype.com/t/modifying-the-proxies-blocked-status-via-scripting-is-not-being-retained/14434 "2025-02-20T21:08:23Z")

</div>

I have created a groovy script that is used for updating the a proxy repositories blocked status. The intent here is I need to automate sometimes flipping a handful of proxies to being blocked (my understanding is this w…

---

## [How to browse/cleanup components/assets in groovy script with H2 instead of OrientDB (e.g. without StorageFacet)](https://community.sonatype.com/t/how-to-browse-cleanup-components-assets-in-groovy-script-with-h2-instead-of-orientdb-e-g-without-storagefacet/13733)

<div class="topic-metadata">

**Author:** [@eugene.prokopiev](https://community.sonatype.com/u/eugene.prokopiev)\
**Replies:** 7\
**Last updated:** [February 11, 2025, 3:36pm UTC](https://community.sonatype.com/t/how-to-browse-cleanup-components-assets-in-groovy-script-with-h2-instead-of-orientdb-e-g-without-storagefacet/13733 "2025-02-11T15:36:59Z")

</div>

Hi, There are many examples how to browse/cleanup components/assets via groovy scripts like so - GitHub - PhilSwiss/nexus-cleanup: Remove old releases from a Maven2-repository on Nexus3 - but after switching to H2 inste…

---

## [Create or update repository with API, disable Strict Content Type Validation](https://community.sonatype.com/t/create-or-update-repository-with-api-disable-strict-content-type-validation/10536)

<div class="topic-metadata">

**Author:** [@pogacnik](https://community.sonatype.com/u/pogacnik)\
**Replies:** 1\
**Last updated:** [May 29, 2023, 10:40am UTC](https://community.sonatype.com/t/create-or-update-repository-with-api-disable-strict-content-type-validation/10536 "2023-05-29T10:40:12Z")

</div>

Hello, I would like to change some repository settings with scripts. By default there are some settings which I would like to edit, for example: “Strict Content Type Validation” is enabled, “Maximum component age”, “Max…

---

## [The assets have identical coordinates](https://community.sonatype.com/t/the-assets-have-identical-coordinates/4742)

<div class="topic-metadata">

**Author:** [@vinzjobard.extia](https://community.sonatype.com/u/vinzjobard.extia)\
**Replies:** 1\
**Last updated:** [September 21, 2022, 9:07pm UTC](https://community.sonatype.com/t/the-assets-have-identical-coordinates/4742 "2022-09-21T21:07:06Z")

</div>

Hi there, I tried to migrate my artefacts from Nexus 3.11 to nexus 3.25.1. To do that I wrote a simple Python Script, that download my artefacts from a given repository, and then push them into my new Nexus. But my art…

---

## [Script Api - Copy Artefacts from Repo to another Repo](https://community.sonatype.com/t/script-api-copy-artefacts-from-repo-to-another-repo/5413)

<div class="topic-metadata">

**Author:** [@Denny](https://community.sonatype.com/u/Denny)\
**Replies:** 0\
**Last updated:** [November 20, 2020, 7:54am UTC](https://community.sonatype.com/t/script-api-copy-artefacts-from-repo-to-another-repo/5413 "2020-11-20T07:54:07Z")

</div>

Hello everyone, for our current development process, we want to copy artefacts from a repository to another repository (on the same nexus instance). In our case, every git branch (e.g. development and feature branches)…

---

## [Is possible to import third package in Nexus Script?](https://community.sonatype.com/t/is-possible-to-import-third-package-in-nexus-script/4886)

<div class="topic-metadata">

**Author:** [@edmomdfrank](https://community.sonatype.com/u/edmomdfrank)\
**Replies:** 1\
**Last updated:** [September 8, 2020, 2:03pm UTC](https://community.sonatype.com/t/is-possible-to-import-third-package-in-nexus-script/4886 "2020-09-08T14:03:00Z")

</div>

I want to write a script to collect the meta data of cached artifacts in Nexus repository and write the results back to our team’s existing mongodb database. Therefore, I need to import a Groovy’s third-party mongodb cli…

---

## [Purge libs-snapshot-local Cannot get Repo details to write delete script](https://community.sonatype.com/t/purge-libs-snapshot-local-cannot-get-repo-details-to-write-delete-script/4194)

<div class="topic-metadata">

**Author:** [@paragi](https://community.sonatype.com/u/paragi)\
**Replies:** 0\
**Last updated:** [May 12, 2020, 2:15pm UTC](https://community.sonatype.com/t/purge-libs-snapshot-local-cannot-get-repo-details-to-write-delete-script/4194 "2020-05-12T14:15:59Z")

</div>

We using Nexus 3.15 on Linux, and have had many team place there artifacts in the libs-snapshot-local repo. Im looking to remove all versions but the most recent 5, some have 50+. Im looking to enhance a shell script t…
