# Source: https://stately.ai/docs/lock-machines.mdx

# Lock machines (/docs/lock-machines)
import { Lock, Unlock, Info } from 'lucide-react';

You can lock a machine anytime to prevent accidental edits. Locked machines have a <Lock size={18} /> **Locked** status displayed in the editorâs top bar and in the projectâs machine list in the left panel.

Hover over the <Lock size={18} /> **Locked** text to view who locked the machine and when.

<Callout>
  Locking machines is a premium feature of Stately Studio. You can try Stately Studioâs premium plans with a free trial. [Check out the features on our Pro plan](studio-pro-plan), [Team plan](studio-team-plan), [Enterprise plan](studio-enterprise-plan) or [upgrade your existing plan](https://stately.ai/registry/billing).
</Callout>

Locking a machine prevents you, or anyone else on your team, from the following:

* Editing the machine
* Deleting the machine
* Renaming the machine
* [Importing code](import-from-code) to replace the machine
* [Restoring a past version](versions) of the machine

If somebody else is viewing or editing the machine when it is locked, their changes will not be saved, and they will be notified that the machine is now locked.

## How to lock and unlock a machine

From the editor menu, go to **Machine** > <Unlock size={18} /> **Lock machine** / <Lock size={18} /> **Unlock machine**.

From the machineâs <Info size={18} /> **Details** panel, use the <Unlock size={18} /> Lock machine / <Lock size={18} /> Unlock machine icon button.

If the machine is already locked, you can unlock it by clicking on the **Locked** button in the editorâs top bar and then confirming that you wish to unlock the machine.

## Team roles and locking machines

All team members can view locked machines. Only team owners, Admins, and Editors can lock and unlock machines.

| Capability              | Owner | Admin | Editor | Viewer |
| ----------------------- | ----- | ----- | ------ | ------ |
| View locked machine     | â Yes | â Yes | â Yes  | â Yes  |
| Lock and unlock machine | â Yes | â Yes | â Yes  | ð« No  |