# Managing Repositories

A repository is a versatile tool for managing writeups. It organizes content into structured categories, allowing for efficient reuse across reports. Repositories grant varying access permissions, enhancing collaboration and control.

## Changing Settings

<mark style="background-color:yellow;">Step 1:</mark> From the **WriteupsDB** module home page, click the repository to update.

<div align="left"><figure><img src="https://4252973360-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LXA6EayCcg12qfDcfXd%2Fuploads%2FTsGJPPasAclNaH1USAUV%2Fimage.png?alt=media&#x26;token=2730d77c-3b2b-4e83-885b-220507740c22" alt="" width="563"><figcaption></figcaption></figure></div>

<mark style="background-color:yellow;">Step 2:</mark> Click **Repository Settings.**&#x20;

{% hint style="info" %}
If the repository is not an "Open" type repository, admins will also see a [**Users & Permissions**](https://docs.plextrac.com/plextrac-documentation/product-documentation/content-library/writeupsdb/managing-users) link next to the settings option.&#x20;
{% endhint %}

<div align="left"><figure><img src="https://4252973360-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LXA6EayCcg12qfDcfXd%2Fuploads%2FJlb0ClmnLGuvwGrJP7yv%2Fimage.png?alt=media&#x26;token=1d3181c7-7988-49da-b58f-9a625a954789" alt="" width="540"><figcaption></figcaption></figure></div>

All fields that existed when creating the repository are available for editing, with an additional button to delete the repository.

<div align="left"><figure><img src="https://4252973360-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LXA6EayCcg12qfDcfXd%2Fuploads%2F3TnFzV7lZMjy6BHJrsyH%2Fimage.png?alt=media&#x26;token=09b1a405-434e-4360-94d4-6de66e8155cd" alt="" width="563"><figcaption></figcaption></figure></div>

<mark style="background-color:yellow;">Step 3:</mark> Click **Submit** when finished.

## Copying a Repository

<mark style="background-color:yellow;">Step 1:</mark> From the **Repositories** tab of the **WriteupsDB** module, click the meatballs menu found on the repository card to copy.

<div align="left"><figure><img src="https://4252973360-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LXA6EayCcg12qfDcfXd%2Fuploads%2FTB98CVDovJfkuTmZLlee%2Fimage.png?alt=media&#x26;token=5757d198-5a82-40ab-ba9d-d3e6f6ea8301" alt="" width="295"><figcaption></figcaption></figure></div>

<mark style="background-color:yellow;">Step 2:</mark> Click **Copy Repository**.

<div align="left"><figure><img src="https://4252973360-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LXA6EayCcg12qfDcfXd%2Fuploads%2F2ks8a7fKeS3BCfs7inz2%2Fimage.png?alt=media&#x26;token=136936cc-4805-4ea8-a161-403f386f682d" alt="" width="343"><figcaption></figcaption></figure></div>

<mark style="background-color:yellow;">Step 3:</mark> Change the repository name, add a section ID, update the description as needed, and validate access permissions. Click **Save**.

<div align="left"><figure><img src="https://4252973360-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LXA6EayCcg12qfDcfXd%2Fuploads%2F4fNnYWw8iUwF4DTtyz3b%2Fimage.png?alt=media&#x26;token=600c56c3-9a95-4a75-b246-4691700c9a9d" alt="" width="563"><figcaption></figcaption></figure></div>

The new repository has been created and is listed on the **Repositories** tab.&#x20;

## Deleting a Repository

{% hint style="danger" %}
This action will delete the repository and all its writeups for all users.&#x20;
{% endhint %}

A repository can be deleted in two ways:

1. Click the meatballs menu on the repository card from the **Repositories** tab of the WriteupsDB module. Then, click the meatballs menu again in the repository card and click **Delete Repository**.\
   ![](https://4252973360-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LXA6EayCcg12qfDcfXd%2Fuploads%2FVuvHGZwTRUWgKGthllt3%2Fimage.png?alt=media\&token=adc6f960-d2d5-48b9-a77f-f7fc8a1aed01)
2. Click the meatballs menu on the repository card from the **Repositories** tab of the WriteupsDB module. Select **Repository Settings**, then scroll to the bottom and click **Delete Repository**.\
   ![](https://4252973360-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LXA6EayCcg12qfDcfXd%2Fuploads%2FJfllwdxXn3vUDaxNyuSw%2Fimage.png?alt=media\&token=5669dd14-3406-4698-8449-01c84bbe7126)

A warning message will appear asking for validation. Click **Delete** to continue.&#x20;

<div align="left"><figure><img src="https://4252973360-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LXA6EayCcg12qfDcfXd%2Fuploads%2FcVsWOqDRKYOxtlUJrzdu%2Fimage.png?alt=media&#x26;token=9a8ff391-50f5-4c1a-a827-cf6da40374f3" alt="" width="330"><figcaption></figcaption></figure></div>
