<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def erase(self, server):
 """ Erase credentials for `server`. Raises a `StoreError` if an error occurs. """

        if not isinstance(server, six.binary_type):
            server = server.encode('utf-8')
        self._execute('erase', server)