The license and trial data is stored in various places across the computer.
To completely remove license information then just call Deactivate(1) (or Deactivate(true) for languages like C# and VB.NET). This deactivates the computer and removes the product key.
If you need to extend a trial then simply use a trial extension.