If it has a custom ROM (which is what Dirty Unicorns is) then it probably has a custom recovery too, which would be the easiest way of resetting.
To get into the recovery program you shut the device down (pressing and holding the power button should do this), then reboot it while pressing and holding some button combination. This depends on the device, but you can find instructions for the Nexus 9
here. You probably have a different recovery program from the one described there, so follow those instructions until you get into recovery, then look for an option to wipe or reset the device. However, note that all this does is erase user-installed apps and data; it will not restore the original system software (ROM).
To get rid of Dirty Unicorns you'll need to reflash the device with stock software. Because I don't own one I don't know how to do it (this stuff is always device-specific), so I'll move this thread to our Nexus 9 rooting forum. The people there should be able to advise you on how to do this.