You need to create a RemoteRepositoryManager object for your server. Once you have this, you can use it to retrieve/remove existing repositories as well as create new repositories.
This is a bit underdocumented in the Sesame documentation. However, see this weblog article for explanation and code examples.