#### Board

### Board.Save. BoardSaveGameManager

## BoardSaveGameManager.RemoveActiveProfileFromSaveGame(string) Method

Removes only the active profile from the specified saved game. If the saved game is not associated with any profiles after removal, the saved game is deleted.

```
public static System.Threading.Tasks.Task<bool> RemoveActiveProfileFromSaveGame(string saveId);
```

#### Parameters

`saveId` [System.String](https://learn.microsoft.com/en-us/dotnet/api/system.string "System\.String")

The unique identifier for a saved game.

#### Returns

[System.Threading.Tasks.Task<](https://learn.microsoft.com/en-us/dotnet/api/system.threading.tasks.task-1 "System\.Threading\.Tasks\.Task\`1") [System.Boolean](https://learn.microsoft.com/en-us/dotnet/api/system.boolean "System\.Boolean") [>](https://learn.microsoft.com/en-us/dotnet/api/system.threading.tasks.task-1 "System\.Threading\.Tasks\.Task\`1")

The task object representing the asynchronous operation.

#### Exceptions

[System.ArgumentNullException](https://learn.microsoft.com/en-us/dotnet/api/system.argumentnullexception "System\.ArgumentNullException")

[saveId](https://docs.dev.board.fun/unity/api/BoardSaveGameManager.RemoveActiveProfileFromSaveGame(string).md#Board.Save.BoardSaveGameManager.RemoveActiveProfileFromSaveGame(string).saveId "Board\.Save\.BoardSaveGameManager\.RemoveActiveProfileFromSaveGame\(string\)\.saveId") is `null` or empty.
