import xhiveframework


def execute():
	if "event_streaming" in xhiveframework.get_installed_apps():
		return

	xhiveframework.delete_doc_if_exists("Module Def", "Event Streaming", force=True)

	for doc in [
		"Event Consumer Document Type",
		"Document Type Mapping",
		"Event Producer",
		"Event Producer Last Update",
		"Event Producer Document Type",
		"Event Consumer",
		"Document Type Field Mapping",
		"Event Update Log",
		"Event Update Log Consumer",
		"Event Sync Log",
	]:
		xhiveframework.delete_doc_if_exists("DocType", doc, force=True)
