diff --git a/objectstore/TapePool.cpp b/objectstore/TapePool.cpp
index 384e8f9491f8f70e39b03ede14df325c8abd31a7..705b39fa8019f79de8a90eea7389bf51742d8d89 100644
--- a/objectstore/TapePool.cpp
+++ b/objectstore/TapePool.cpp
@@ -129,7 +129,7 @@ void cta::objectstore::TapePool::removeTapeAndCommit(const std::string& vid) {
           << vid << " found: " << t.getVid();
       throw WrongTape(err.str());
     }
-    if(t.isEmpty()) {
+    if(!t.isEmpty()) {
       throw exception::Exception("Cannot delete the tape: it has queued retrieve jobs");
     }
     // We can now delete the tape