If you can still access your phone's settings, removing a lock is simple. However, if you are locked out entirely, a more drastic approach is required.
Navigate to Settings > Passwords & Security > Screen Lock , enter your current credentials, and select Turn off screen lock . If you can still access your phone's settings,
1. Breaking the Barrier: Screen Locks (PIN, Pattern, Password) removing a lock is simple. However
Go to Settings > Password & Security > Lock Screen Password , verify your identity, and choose None or Swipe . Hard Reset (If Locked Out): if you are locked out entirely