Added function to delete single lock