Skip to content
2 changes: 1 addition & 1 deletion .codegen.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{ "engineHash": "8cdcb1b", "specHash": "1715587", "version": "5.0.0" }
{ "engineHash": "7c94f4f", "specHash": "a646ae6", "version": "5.0.0" }
6 changes: 3 additions & 3 deletions docs/sdkgen/users.md
Original file line number Diff line number Diff line change
Expand Up @@ -196,9 +196,9 @@ Returns the updated user object.

## Delete user

Deletes a user. By default this will fail if the user
still owns any content. Move their owned content first
before proceeding, or use the `force` field to delete
Deletes a user. By default, this operation fails if the user
still owns any content, was recently active, or recently joined the enterprise from a free account.
To proceed, move their owned content first, or use the `force` parameter to delete
the user and their files.

This operation is performed by calling function `deleteUserById`.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,10 @@ public class DeleteUserByIdQueryParams {
/** Whether the user will receive email notification of the deletion. */
public Boolean notify;

/** Whether the user should be deleted even if this user still own files. */
/**
* Specifies whether to delete the user even if they still own files, were recently active, or
* recently joined the enterprise from a free account.
*/
public Boolean force;

public DeleteUserByIdQueryParams() {}
Expand Down
20 changes: 12 additions & 8 deletions src/main/java/com/box/sdkgen/managers/users/UsersManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -477,8 +477,9 @@ public UserFull updateUserById(
}

/**
* Deletes a user. By default this will fail if the user still owns any content. Move their owned
* content first before proceeding, or use the `force` field to delete the user and their files.
* Deletes a user. By default, this operation fails if the user still owns any content, was
* recently active, or recently joined the enterprise from a free account. To proceed, move their
* owned content first, or use the `force` parameter to delete the user and their files.
*
* @param userId The ID of the user. Example: "12345"
*/
Expand All @@ -487,8 +488,9 @@ public void deleteUserById(String userId) {
}

/**
* Deletes a user. By default this will fail if the user still owns any content. Move their owned
* content first before proceeding, or use the `force` field to delete the user and their files.
* Deletes a user. By default, this operation fails if the user still owns any content, was
* recently active, or recently joined the enterprise from a free account. To proceed, move their
* owned content first, or use the `force` parameter to delete the user and their files.
*
* @param userId The ID of the user. Example: "12345"
* @param queryParams Query parameters of deleteUserById method
Expand All @@ -498,8 +500,9 @@ public void deleteUserById(String userId, DeleteUserByIdQueryParams queryParams)
}

/**
* Deletes a user. By default this will fail if the user still owns any content. Move their owned
* content first before proceeding, or use the `force` field to delete the user and their files.
* Deletes a user. By default, this operation fails if the user still owns any content, was
* recently active, or recently joined the enterprise from a free account. To proceed, move their
* owned content first, or use the `force` parameter to delete the user and their files.
*
* @param userId The ID of the user. Example: "12345"
* @param headers Headers of deleteUserById method
Expand All @@ -509,8 +512,9 @@ public void deleteUserById(String userId, DeleteUserByIdHeaders headers) {
}

/**
* Deletes a user. By default this will fail if the user still owns any content. Move their owned
* content first before proceeding, or use the `force` field to delete the user and their files.
* Deletes a user. By default, this operation fails if the user still owns any content, was
* recently active, or recently joined the enterprise from a free account. To proceed, move their
* owned content first, or use the `force` parameter to delete the user and their files.
*
* @param userId The ID of the user. Example: "12345"
* @param queryParams Query parameters of deleteUserById method
Expand Down