added delete method to userAPI

added function to log a user off.