Hi John Doe,
To clear this logical lock you should remain in your elevated command window, ensure your target disk is still active by running select disk X where X is your drive index and then execute the command attributes disk clear readonly to strip away the write protection flag.
Once that command successfully clears the metadata block, you can safely proceed to run your clean command string to wipe out all old system partitions without further validation errors. However, if the clean command still aborts after clearing the attributes, the internal SSD controller itself might have reached its write endurance limit and entered a permanent, hardware-enforced failsafe read-only mode to safeguard existing data, which would require a manufacturer diagnostic tool to verify health status.
Hope this answer has brought you some useful information. If it did, please hit “accept answer”. Should you have any questions, feel free to leave a comment.
Tracy Le.