def _maybe_remove_implicit_api(self, template):
<EOL>implicit_api_resource = template.get(self.implicit_api_logical_id)<EOL>if implicit_api_resource and len(implicit_api_resource.properties["<STR_LIT>"]["<STR_LIT>"]) == <NUM_LIT:0>:<EOL><INDENT>if self.existing_implicit_api_resource:<EOL><INDENT>template.set(self.implicit_api_logical_id, self.existing_implicit_api_resource)<EOL><DEDENT>else:<EOL><INDENT>template.delete(self.implicit_api_logical_id)<EOL><DEDENT><DEDENT>
Implicit API resource are tentatively added to the template for uniform handling of both Implicit & Explicit
APIs. They need to removed from the template, if there are *no* API events attached to this resource.
This method removes the Implicit API if it does not contain any Swagger paths (added in response to API events).

:param SamTemplate template: SAM Template containing the Implicit API resource