Unable to delete profiles in Terminal #20077

Closed
opened 2026-01-31 07:02:44 +00:00 by claunia · 21 comments
Owner

Originally created by @mridun-gupta on GitHub (Jun 13, 2023).

Windows Terminal version

1.17.11461.0

Windows build number

No response

Other Software

No response

Steps to reproduce

1.) Make a custom terminal profile
3.) Try deleting it, it shows the option to delete

Expected Behavior

The profile should be deleted by the backend OS smoothly.

Actual Behavior

It won't get deleted.

https://github.com/microsoft/terminal/assets/91019667/7a01252b-1e80-4181-8d68-ac38518e7434

Originally created by @mridun-gupta on GitHub (Jun 13, 2023). ### Windows Terminal version 1.17.11461.0 ### Windows build number _No response_ ### Other Software _No response_ ### Steps to reproduce 1.) Make a custom terminal profile 3.) Try deleting it, it shows the option to delete ### Expected Behavior The profile should be deleted by the backend OS smoothly. ### Actual Behavior It won't get deleted. https://github.com/microsoft/terminal/assets/91019667/7a01252b-1e80-4181-8d68-ac38518e7434
claunia added the Issue-BugNeeds-Tag-FixProduct-TerminalPriority-2Area-SettingsUI labels 2026-01-31 07:02:45 +00:00
Author
Owner

@lhecker commented on GitHub (Jun 13, 2023):

I assume this problem persists even after you restart Windows Terminal right? Could you provide us with a settings.json file that reproduces the issue?

@lhecker commented on GitHub (Jun 13, 2023): I assume this problem persists even after you restart Windows Terminal right? Could you provide us with a settings.json file that reproduces the issue?
Author
Owner

@mridun-gupta commented on GitHub (Jun 13, 2023):

Yes, It persists even after restarting terminal or even Windows 11 (only happening on Windows 11, on Windows 10 working fine)

@mridun-gupta commented on GitHub (Jun 13, 2023): Yes, It persists even after restarting terminal or even Windows 11 (only happening on Windows 11, on Windows 10 working fine)
Author
Owner

@mridun-gupta commented on GitHub (Jun 13, 2023):

settings.txt

converted json to txt (for direct code of json check history of this comment
the profiles are unavailable in the json

@mridun-gupta commented on GitHub (Jun 13, 2023): [settings.txt](https://github.com/microsoft/terminal/files/11736822/settings.txt) converted json to txt (for direct code of json check history of this comment the profiles are unavailable in the json
Author
Owner

@carlos-zamora commented on GitHub (Jun 14, 2023):

Hi @mridun-gupta. This seems to be the wrong settings file. The profiles should be in the JSON. Additionally, the "SharePoint Online Management Shell" profile is in the JSON but isn't in the video you shared.

Just to be sure, click on the "Open JSON file" button in the navigation view, then send us a copy of that one. Also, curious, do you have multiple versions of Windows Terminal installed?

@carlos-zamora commented on GitHub (Jun 14, 2023): Hi @mridun-gupta. This seems to be the wrong settings file. The profiles should be in the JSON. Additionally, the "SharePoint Online Management Shell" profile is in the JSON but isn't in the video you shared. Just to be sure, click on the "Open JSON file" button in the navigation view, then send us a copy of that one. Also, curious, do you have multiple versions of Windows Terminal installed?
Author
Owner

@mridun-gupta commented on GitHub (Jun 15, 2023):

Hi @mridun-gupta. This seems to be the wrong settings file. The profiles should be in the JSON. Additionally, the "SharePoint Online Management Shell" profile is in the JSON but isn't in the video you shared.

Just to be sure, click on the "Open JSON file" button in the navigation view, then send us a copy of that one. Also, curious, do you have multiple versions of Windows Terminal installed?

The JSON file is correct, SharePoint Online Management Shell is added just to test whether the forum solutions might help or not, and now I unable to delete it too, SpeedTest profiles shown in shared video are not mentioned in the JSON file too (which I do mentioned while sharing JSON file.)

@mridun-gupta commented on GitHub (Jun 15, 2023): > Hi @mridun-gupta. This seems to be the wrong settings file. The profiles should be in the JSON. Additionally, the "SharePoint Online Management Shell" profile is in the JSON but isn't in the video you shared. > > Just to be sure, click on the "Open JSON file" button in the navigation view, then send us a copy of that one. Also, curious, do you have multiple versions of Windows Terminal installed? The JSON file is correct, SharePoint Online Management Shell is added just to test whether the forum solutions might help or not, and now I unable to delete it too, SpeedTest profiles shown in shared video are not mentioned in the JSON file too (which I do mentioned while sharing JSON file.)
Author
Owner

@mridun-gupta commented on GitHub (Jun 15, 2023):

Yes it has errors and it needs to be fixed . Do you want our help and support On Thu, Jun 15, 2023 at 3:32 AM Mridun Gupta < @.> wrote:

Hi @mridun-gupta https://github.com/mridun-gupta. This seems to be the wrong settings file. The profiles should be in the JSON. Additionally, the "SharePoint Online Management Shell" profile is in the JSON but isn't in the video you shared. Just to be sure, click on the "Open JSON file" button in the navigation view, then send us a copy of that one. Also, curious, do you have multiple versions of Windows Terminal installed? The JSON file is correct, SharePoint Online Management Shell is added just to test whether the forum solutions might help or not, and now I unable to delete it too, SpeedTest profiles shown in shared video are not mentioned in the JSON file too (which I do mentioned while sharing JSON file.) — Reply to this email directly, view it on GitHub <#15542 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/BASR7VRXJOJY7AJEFI4PMQLXLJX3JANCNFSM6AAAAAAZEIEDLQ . You are receiving this because you are subscribed to this thread.Message ID: @.
>

Yes, please. It will be very kind of you to help me out and try to fix the issue in future updates (if there is something messed up in the source code itself).

@mridun-gupta commented on GitHub (Jun 15, 2023): > Yes it has errors and it needs to be fixed . Do you want our help and support On Thu, Jun 15, 2023 at 3:32 AM Mridun Gupta < ***@***.***> wrote: > […](#) > Hi @mridun-gupta <https://github.com/mridun-gupta>. This seems to be the wrong settings file. The profiles should be in the JSON. Additionally, the "SharePoint Online Management Shell" profile is in the JSON but isn't in the video you shared. Just to be sure, click on the "Open JSON file" button in the navigation view, then send us a copy of that one. Also, curious, do you have multiple versions of Windows Terminal installed? The JSON file is correct, SharePoint Online Management Shell is added just to test whether the forum solutions might help or not, and now I unable to delete it too, SpeedTest profiles shown in shared video are not mentioned in the JSON file too (which I do mentioned while sharing JSON file.) — Reply to this email directly, view it on GitHub <[#15542 (comment)](https://github.com/microsoft/terminal/issues/15542#issuecomment-1592249257)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/BASR7VRXJOJY7AJEFI4PMQLXLJX3JANCNFSM6AAAAAAZEIEDLQ> . You are receiving this because you are subscribed to this thread.Message ID: ***@***.***> Yes, please. It will be very kind of you to help me out and try to fix the issue in future updates (if there is something messed up in the source code itself).
Author
Owner

@DHowett commented on GitHub (Jun 15, 2023):

Just so you know, that person is not affiliated with our team even though the language they used indicated that they might be.

Thanks for the additional information. Can you share the file path to that settings file? In addition, do you have multiple versions of Windows Terminal installed?

@DHowett commented on GitHub (Jun 15, 2023): Just so you know, that person is not affiliated with our team even though the language they used indicated that they might be. Thanks for the additional information. Can you share the *file path* to that settings file? In addition, do you have multiple versions of Windows Terminal installed?
Author
Owner

@DHowett commented on GitHub (Jun 15, 2023):

Typically, if a profile is present in the settings interface it must be present in the JSON file. There are likely multiple novel bugs here that we have never seen reports of before. :)

@DHowett commented on GitHub (Jun 15, 2023): Typically, if a profile is present in the settings interface _it must be present in the JSON file_. There are likely multiple novel bugs here that we have never seen reports of before. :)
Author
Owner

@mridun-gupta commented on GitHub (Jun 15, 2023):

Just so you know, that person is not affiliated with our team even though the language they used indicated that they might be.

Thanks for the additional information. Can you share the file path to that settings file? In addition, do you have multiple versions of Windows Terminal installed?

Thank you for informing sir, I only use a single Windows Terminal installed on my Windows 11.

@mridun-gupta commented on GitHub (Jun 15, 2023): > Just so you know, that person is not affiliated with our team even though the language they used indicated that they might be. > > Thanks for the additional information. Can you share the _file path_ to that settings file? In addition, do you have multiple versions of Windows Terminal installed? Thank you for informing sir, I only use a single Windows Terminal installed on my Windows 11.
Author
Owner

@mridun-gupta commented on GitHub (Jun 15, 2023):

Typically, if a profile is present in the settings interface it must be present in the JSON file. There are likely multiple novel bugs here that we have never seen reports of before. :)

Yeah, I had almost the same configuration earlier in Windows 10, I had no issues with it, but when I made it to Windows 11, Terminal started producing errors.

@mridun-gupta commented on GitHub (Jun 15, 2023): > Typically, if a profile is present in the settings interface _it must be present in the JSON file_. There are likely multiple novel bugs here that we have never seen reports of before. :) Yeah, I had almost the same configuration earlier in Windows 10, I had no issues with it, but when I made it to Windows 11, Terminal started producing errors.
Author
Owner

@mridun-gupta commented on GitHub (Jun 15, 2023):

Thank you, @microsoft for deleting the spammy messages.

@mridun-gupta commented on GitHub (Jun 15, 2023): Thank you, @microsoft for deleting the spammy messages.
Author
Owner

@DHowett commented on GitHub (Jun 21, 2023):

Thanks for all the info. Right now, we don't know what is happening and so the bug will require a bit more investigation.

@DHowett commented on GitHub (Jun 21, 2023): Thanks for all the info. Right now, we don't know what is happening and so the bug will require a bit more investigation.
Author
Owner

@Limyx826 commented on GitHub (Jul 22, 2023):

Just notify I have the same issue when trying to delete profiles.
Terminal Version: 1.17.11461.0
Windows 10 22H2 build 19045.3208.

@Limyx826 commented on GitHub (Jul 22, 2023): Just notify I have the same issue when trying to delete profiles. Terminal Version: 1.17.11461.0 Windows 10 22H2 build 19045.3208.
Author
Owner

@Limyx826 commented on GitHub (Jul 22, 2023):

LocalState.zip
Attached the entire local state folder for reference.

@Limyx826 commented on GitHub (Jul 22, 2023): [LocalState.zip](https://github.com/microsoft/terminal/files/12136840/LocalState.zip) Attached the entire local state folder for reference.
Author
Owner

@jtnord commented on GitHub (Sep 4, 2023):

I also have this issue - is there anything I can do to provide some more information about this?
1.17.11461.0 windows 11 21H2

@jtnord commented on GitHub (Sep 4, 2023): I also have this issue - is there anything I can do to provide some more information about this? `1.17.11461.0` windows 11 21H2
Author
Owner

@codecruisedor commented on GitHub (Sep 14, 2023):

I don't know if this is already known, but just mentioning this here since I noticed it.

I have Windows 10 Version 10.0.19045.3324, Terminal Version: 1.17.11461.0.

I delete a profile and it does not get deleted. So, I checked in the settings JSON file and it still contained the profile(was not removed). Only after clicking the save button did I see the profile getting deleted, which subsequently deleted the profile in the JSON file. Hitting save triggers the deletion it seems. Attached is a video for reference, in which I deleted the profile named 'Profile7'.

https://github.com/microsoft/terminal/assets/25024714/9de10c20-fe91-40ee-b616-cf24bb698c9d

@codecruisedor commented on GitHub (Sep 14, 2023): I don't know if this is already known, but just mentioning this here since I noticed it. I have Windows 10 Version 10.0.19045.3324, Terminal Version: 1.17.11461.0. I delete a profile and it does not get deleted. So, I checked in the settings JSON file and it _still_ contained the profile(was not removed). Only after clicking the save button did I see the profile getting deleted, which subsequently deleted the profile in the JSON file. Hitting save _triggers_ the deletion it seems. Attached is a video for reference, in which I deleted the profile named 'Profile7'. https://github.com/microsoft/terminal/assets/25024714/9de10c20-fe91-40ee-b616-cf24bb698c9d
Author
Owner

@mridun-gupta commented on GitHub (Sep 14, 2023):

I don't know if this is already known, but just mentioning this here since I noticed it.

I have Windows 10 Version 10.0.19045.3324, Terminal Version: 1.17.11461.0.

I delete a profile and it does not get deleted. So, I checked in the settings JSON file and it still contained the profile(was not removed). Only after clicking the save button did I see the profile getting deleted, which subsequently deleted the profile in the JSON file. Hitting save triggers the deletion it seems. Attached is a video for reference, in which I deleted the profile named 'Profile7'.

Desktop.2023.09.14.-.23.06.31.01.mp4

Thank you @codecruisedor for sharing this clip, but maybe the team have either make this as a disclaimer in settings or might make it less confusing for a regular user.

@mridun-gupta commented on GitHub (Sep 14, 2023): > I don't know if this is already known, but just mentioning this here since I noticed it. > > I have Windows 10 Version 10.0.19045.3324, Terminal Version: 1.17.11461.0. > > I delete a profile and it does not get deleted. So, I checked in the settings JSON file and it _still_ contained the profile(was not removed). Only after clicking the save button did I see the profile getting deleted, which subsequently deleted the profile in the JSON file. Hitting save _triggers_ the deletion it seems. Attached is a video for reference, in which I deleted the profile named 'Profile7'. > > Desktop.2023.09.14.-.23.06.31.01.mp4 Thank you @codecruisedor for sharing this clip, but maybe the team have either make this as a disclaimer in settings or might make it less confusing for a regular user.
Author
Owner

@rsenna commented on GitHub (Jan 13, 2024):

I think this is related to UX bugs.

It would be OK to keep the current behavior, but that in combination with the UX issues below, makes it very hard for a newbie or casual user to deal with profiles in a proper manner:

  • There is no indication in the Settings window that changes have been made, and that user needs to click on Save after deleting a profile.
  • The "Discard Changes" button is always visible and enabled, even when no changes have been made.
  • If one simply closes the setting tab, there's also no indication of pending changes, and those are simply lost.

Btw, I also struggled with the problem described by the OP, and I was only able to "fix" it by following @codecruisedor's suggestion.

@rsenna commented on GitHub (Jan 13, 2024): I think this is related to *UX* bugs. It would be OK to keep the current behavior, but that *in combination with* the UX issues below, makes it very hard for a newbie or casual user to deal with profiles in a proper manner: - There is no indication in the Settings window that changes have been made, and that user needs to click on Save after deleting a profile. - The "Discard Changes" button is always visible and enabled, even when no changes have been made. - If one simply closes the setting tab, there's also no indication of pending changes, and those are simply lost. Btw, I also struggled with the problem described by the OP, and I was only able to "fix" it by following @codecruisedor's suggestion.
Author
Owner

@mridun-gupta commented on GitHub (Jan 15, 2024):

@rsenna Do you suggest that I reopen this issue again (in the public interest)?

@mridun-gupta commented on GitHub (Jan 15, 2024): @rsenna Do you suggest that I reopen this issue again (in the public interest)?
Author
Owner

@pascal456 commented on GitHub (Aug 20, 2024):

I also stumbled upon this issue-thread while looking for a solution. I experienced it exactly like described above (clip).

  • go to settings
  • select profile
  • click delete
  • confirm deletion ()
  • profile is removed from the settings navigation on the left (this is where the confusion comes from)

Now I closed the settings tab and from the new tab dop-down menu the profile was still available. Also when opening the settings again, the profile appeared in all menus again.

Solution: All the steps but additionally click on save in the profile settings window that is automatically selected after confirmation of deletion (which actually belongs to another profile than the one I deleted 😵)

@pascal456 commented on GitHub (Aug 20, 2024): I also stumbled upon this issue-thread while looking for a solution. I experienced it exactly like described above (clip). - go to settings - select profile - click delete - confirm deletion (❗) - profile is removed from the settings navigation on the left (**this is where the confusion comes from**) Now I closed the settings tab and from the _new tab dop-down menu_ the profile was still available. Also when opening the settings again, the profile appeared in all menus again. **Solution:** All the steps but additionally click on _save_ in the profile settings window that is automatically selected after confirmation of deletion (which actually belongs to another profile than the one I deleted 😵)
Author
Owner

@carlos-zamora commented on GitHub (Jan 15, 2025):

Looping back on this. Closing as by design since it's a matter of clicking the "save" button.

@carlos-zamora commented on GitHub (Jan 15, 2025): Looping back on this. Closing as by design since it's a matter of clicking the "save" button.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#20077