Login to your account at www.marlinstests.com and go to "Test Administration" > "Manage licence codes".

Choose the test type and click "allocated" then click "Amend" next to the licence code you wish to reallocate.