This issue occurs due to a linked document from Alfresco. As only the PROD environment is linked to the PROD Aldresco database, the error occurs when trying to delete in a non-live environment as it isn't linked to the PROD Alfresco database.
The step deletion can't be done from a non-live environment if you have links to Alfresco.
Error logs
In the error logs, you'll see the error showing like this:
'Cannot access "http://localhost:8080/alfresco/cmisatom/": Tried all: '2' addresses, but could not connect over HTTP to server: 'localhost', port: '8080'
failed reasons:
[0] address:'localhost/127.0.0.1',port:'8080' : java.net.ConnectException: Connection refused
[1] address:'localhost/0:0:0:0:0:0:0:1',port:'8080' : java.net.ConnectException: Connection refused'
