Adobe highly recommends that you back up your repository before deleting AEM. If you delete the entire, you will delete the repository. To keep the repository data before deleting, move or copy the /crx-quickstart/repository folder somewhere else before deleting the other folders.