> ## Documentation Index
> Fetch the complete documentation index at: https://docs.galileo.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# unshareProjectWithUser

***

# Function: unshareProjectWithUser()

```ts theme={null}
function unshareProjectWithUser(
  projectId: string,
  userId: string,
): Promise<void>;
```

Defined in: [src/utils/projects.ts](https://github.com/rungalileo/galileo-js/blob/main/src/utils/projects.ts)

Removes a user's access to a project.

## Parameters

### projectId

`string`

ID of the project to unshare.

### userId

`string`

ID of the user losing access.

## Returns

`Promise`\<`void`>

A promise that resolves when the user is unshared.
