# CASTOR post-migration clean up script

**URL:** <https://cta-community.web.cern.ch/t/castor-post-migration-clean-up-script/211>\
**Category:** Site Administrators\
**Created:** [20 March 2023 11:44 UTC](https://cta-community.web.cern.ch/t/castor-post-migration-clean-up-script/211 "2023-03-20T11:44:27Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![george\_patargias](https://cta-community.web.cern.ch/letter_avatar_proxy/v4/letter/g/b9bd4f/32.png) [@george\_patargias](https://cta-community.web.cern.ch/u/george_patargias)\
**Post date:** [20 March 2023 11:44 UTC](https://cta-community.web.cern.ch/t/castor-post-migration-clean-up-script/211/1 "2023-03-20T11:44:28Z")

</div>

HI,

Can you please confirm that this is it the script

> **[cta\_catalogue\_remove\_castor\_migration.sql · master · cta /...](https://gitlab.cern.ch/cta/castor-eoscta-migration/-/blob/master/cta_catalogue_remove_castor_migration.sql)**
>
> Migration tools used to move from CASTOR to EOS+CTA

that we need to run to remove the DB objects created in a previous CASTOR migration. This is before we attempt a migration of another CASTOR instance.

Thanks,

George

---

<div class="post-metadata">

**Author:** ![mdavis](https://cta-community.web.cern.ch/user_avatar/cta-community.web.cern.ch/mdavis/32/16_2.png) [@mdavis](https://cta-community.web.cern.ch/u/mdavis)\
**Post date:** [20 March 2023 15:47 UTC](https://cta-community.web.cern.ch/t/castor-post-migration-clean-up-script/211/2 "2023-03-20T15:47:17Z")

</div>

Hi George,

This script removes the procedures, synonyms and intermediate tables required by the CTA migration tools. It should be executed after the migration is complete, to clean up the DB.

Cheers,

Michael

---

<div class="post-metadata">

**Author:** ![george\_patargias](https://cta-community.web.cern.ch/letter_avatar_proxy/v4/letter/g/b9bd4f/32.png) [@george\_patargias](https://cta-community.web.cern.ch/u/george_patargias)\
**Post date:** [21 March 2023 09:12 UTC](https://cta-community.web.cern.ch/t/castor-post-migration-clean-up-script/211/3 "2023-03-21T09:12:01Z")

</div>

Hi Michael,

Many thanks for confirming this.

Best,

George
