[api] Don't infloop in delete_project_pubkey