Skip to content

Commit

Permalink
Add force flag to delete backend (#6635)
Browse files Browse the repository at this point in the history
* adding force flag

* add changelog entry
  • Loading branch information
colerogers committed Jan 18, 2024
1 parent eefa8e0 commit fa56207
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
- Fixed issue where Auth emulator sign in with Google only shows default tenant. (#6683)
- Prevent the use of pinTags + minInstances on the same function, as the features are not mutually compatible (#6684)
- Add force flag to delete backend (#6635).
2 changes: 1 addition & 1 deletion src/gcp/apphosting.ts
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ export async function deleteBackend(
location: string,
backendId: string
): Promise<Operation> {
const name = `projects/${projectId}/locations/${location}/backends/${backendId}`;
const name = `projects/${projectId}/locations/${location}/backends/${backendId}?force=true`;
const res = await client.delete<Operation>(name);

return res.body;
Expand Down

0 comments on commit fa56207

Please sign in to comment.