Bulk service deletion from rails console #22557
Unanswered
svinopterix
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I need to delete several thousands of services by name pattern, NOT retire, just delete from vmdb. The services are Generic Services, some of them may be related to Generic Objects, which I'm going to delete separately. Is it safe to do
Service.where("name LIKE ?", "%PATTERN%").destroy_all
from rails console? Wouldn't it break database integrity?
Best regards
Beta Was this translation helpful? Give feedback.
All reactions