2 versions of delete query