I'd rather see one function per action - these should be split into a create and delete method.