While you might need to completely replace your lock it s possible you just need to replace the latch.
Sliding door lock broken.
Remove the broken sliding glass door lock from the door by removing the screws that attach it to the door.
Because sliding patio doors are used a lot it s common for their locks to occasionally jam or break.
First remove the screws securing the door handle in place first with your phillips screwdriver and slide the outer latch lever out of place.
Take the old door lock to your local hardware store to use as a reference when purchasing a new door lock.
These locks are important for keeping your patio doors secure so it s important that you replace yours promptly if it s not working.