Important considerations when using a delete query