diff --git a/public/app/features/teams/state/actions.ts b/public/app/features/teams/state/actions.ts index dfd0ba2e199..b47b32ba9bd 100644 --- a/public/app/features/teams/state/actions.ts +++ b/public/app/features/teams/state/actions.ts @@ -118,7 +118,8 @@ export function addTeamGroup(groupId: string): ThunkResult { export function removeTeamGroup(groupId: string): ThunkResult { return async (dispatch, getStore) => { const team = getStore().team.team; - await getBackendSrv().delete(`/api/teams/${team.id}/groups/${encodeURIComponent(groupId)}`); + // need to use query parameter due to escaped characters in the request + await getBackendSrv().delete(`/api/teams/${team.id}/groups?groupId=${encodeURIComponent(groupId)}`); dispatch(loadTeamGroups()); }; }