In the Nexus 3 Reference about its REST API and scripting it is described how to upload Groovy scripts to Nexus 3 and how to run them. Examples are shown how to create new repositories, such as a Maven repository:
repository.createMavenHosted('private')
However, as simple as it sounds, I did not find any similar method to delete or remove an existing repository. Is that really not possible?