diff --git a/seahub/api2/endpoints/repo_trash.py b/seahub/api2/endpoints/repo_trash.py index e9757f40c63..b974a507ec4 100644 --- a/seahub/api2/endpoints/repo_trash.py +++ b/seahub/api2/endpoints/repo_trash.py @@ -237,7 +237,6 @@ def delete(self, request, repo_id, format=None): return api_error(status.HTTP_403_FORBIDDEN, error_msg) try: - from seahub.utils import SeafEventsSession, seafevents_api seafile_api.clean_up_repo_history(repo_id, keep_days) org_id = None if not request.user.org else request.user.org.org_id clean_up_repo_trash.send(sender=None, org_id=org_id, @@ -245,7 +244,6 @@ def delete(self, request, repo_id, format=None): repo_owner=repo_owner, days=keep_days) except Exception as e: - print(e, '11111111') logger.error(e) error_msg = 'Internal Server Error' return api_error(status.HTTP_500_INTERNAL_SERVER_ERROR, error_msg)