# Create Cleanup Policies with Python

**URL:** <https://community.sonatype.com/t/create-cleanup-policies-with-python/7662>\
**Category:** Sonatype Nexus Repository\
**Created:** [November 16, 2021, 1:21am UTC](https://community.sonatype.com/t/create-cleanup-policies-with-python/7662 "2021-11-16T01:21:12Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![drew.mace](https://avatars.discourse-cdn.com/v4/letter/d/b5a626/32.png) [@drew.mace](https://community.sonatype.com/u/drew.mace)\
**Post date:** [November 16, 2021, 1:21am UTC](https://community.sonatype.com/t/create-cleanup-policies-with-python/7662/1 "2021-11-16T01:21:13Z")

</div>

Does anyone have an example python script to create a cleanup policy and associate with with a repo? We do not want to use groovy since it si not natively installed on our servers.
