Added switch between real-time and catalog server to delete method