You need to have a research data management discussion with your line manager to sort out how you will manage the data you are holding. Cleaning up data when leaving the University can be a daunting experience but help is available. Data curation is essential to ensure that your data is maintained and supported appropriately. Before leaving, it is crucial to discuss your or any student's data that you are responsible for, with your research lead/ line manager. Don’t forget that to curate the data, you also need records such contracts, ethical approvals, protocols, and SOPs. You can always ask for assistance in creating or updating data management plans.
Mostly, staff members take copies of their data and records when they leave. However, the University is flexible, and discussing research data can result in many types of arrangements. A contract or a data management plan that clarifies rights and responsibilities might already exist. If that is the case simply record that nothing has changed. Sensitive data might need special arrangements.
It is vital to have a record of this discussion reflected in a research data management plan. Once the plan has been discussed, it should be executed, often by archiving the data. The plan must be retained as a record. If you have any concerns or questions about leaving the University and how it may affect your legal rights, please ask your research office for guidance.