api.py: fixes success assignment in delete_repos()