Office 365: Considerations to take into account when deleting Office 365 users!

If you have had to delete Office 365 users either using the Office 365 Administration Portal or PowerShell (For instance, you can use a PowerShell script like the following one: How to remove remove several Office 365 users in bulk!), you have to take into account that deleted users are not definitively removed. Deleted users are sent to the users’ recycle bin. Therefore, if you want to delete definitively these users, I recommend you to read the following article: http://o365info.com/soft-delete-office-365-recycle-bin/. As you can see in the article:

  • If you execute in the PowerShell command line the cmdlet Get-MsolUser –ReturnDeletedUsers, you will the list of all the deleted users that are currently in users’ the recycle bin.

image_thumb[2]

  • In order to definitively delete the users from the users’ recycle bin, you have to execute the following PowerShell sequence: Get-MsolUser -ReturnDeletedUsers | Remove-MsolUser -RemoveFromRecycleBin –Force. Once you have execute the sequence, simply review the users have been deleted definitively.

image3_thumb

Office 365: Consideraciones a tener en cuenta a la hora de borrar usuarios!

Si has tenido que borrar usuarios de Office 365 bien a través del portal de administración o bien a través de PowerShell (Por ejemplo, usando un script como este How to remove remove several Office 365 users in bulk!), tienes que tener en cuenta que esos usuarios no se quedan borrados de forma definitiva, sino que se van a ir a la papelera de reciclaje de usuarios. Para borrar estos usuarios de forma definitiva, te recomiendo que leas el siguiente artículo: http://o365info.com/soft-delete-office-365-recycle-bin/. Básicamente:

  • Si ejecutas en la interfaz de línea de comandos de PowerShell el comando Get-MsolUser –ReturnDeletedUsers tendrás que se devuelve el listado de usuarios borrados y que están en la papelera.

image

  • Para borrar esos usuarios de la papelera de forma definitiva, simplemente usa la siguiente secuencia: Get-MsolUser -ReturnDeletedUsers | Remove-MsolUser -RemoveFromRecycleBin –Force. A continuación podrás comprobar como los usuarios se han borrado correctamente de la papelera

image