I imported a few hundred Projects from CSV file and I want to delete them all. Is there any way to do this other than clicking on them in the Projects View and deleting them one by one?
Well, no : no other way.
Have to do it one by one.
Sorry
But maybe it will be easier to simply "close" them.
This can be done through multiple update functionality.
And if you only created projects, and no other item referencing these project, you can try deleting directly from database : just think to also delete planningelement with refType='Project' and refId=id of project.
Or simply try to write your own php code that will do it...
Something like (sorry not tested) :
include_once("../tool/projeqtor.php"); // change this depenging on location of your script, here is may be in /test folder
$startId=10; // change with your onw start id to delete
$endId = 100; // change with your onw end id to delete
for ($id=$startId; $id<=$endId; $id++) {
$project=new Project($id);
$project->delete();
}
En poursuivant votre navigation, vous acceptez le dépôt de cookies tiers destinés au bon fonctionnement et à la sécurisation du site (gestion de session, reCaptcha) et à une analyse statistique anonymisée des accès sur notre site (Google Analytics). Si vous vous inscrivez, les informations que vous fournirez ne seront jamais divulguées à un tiers sous quelque forme que ce soit. En savoir plus
Cookies settings
×
Functional Cookies
Ce site utilise des cookies pour assurer son bon fonctionnement et ne peuvent pas être désactivés de nos systèmes. Nous ne les utilisons pas à des fins publicitaires. Si ces cookies sont bloqués, certaines parties du site ne pourront pas fonctionner.
Session
Please login to see yours activities!
Other cookies
Ce site web utilise un certain nombre de cookies pour gérer, par exemple, les sessions utilisateurs.