Fixes #938 No errors on quick layer deletion
Merge pull request #1091 from aodn/issue-938

Merging this as the only comment from the review is about some code which is developer's discretion and the developer is happy.

Fixes #938 No errors on quick layer deletion