How to remove a lock