Packages cannot be removed

Questions about WAPT Server / Requests and help related to the WAPT server
Forum Rules
Community Forum Rules
* English support on www.reddit.com/r/wapt
* French community support is available on this forum
* Please prefix the topic title with [RESOLVED] if it is resolved.
* Please do not edit a topic that is tagged [RESOLVED]. Open a new topic referencing the old one.
* Specify the installed WAPT version, full version, and build number (2.2.1.11957 / 2.2.2.12337 / etc.) as well as the Enterprise/Discovery edition.
* Versions 1.8.2 and earlier are no longer supported. The only questions accepted regarding version 1.8.2 are related to upgrading to a supported version (2.1, 2.2, etc.).
* Specify the server OS (Linux/Windows) and version (Debian Buster/Bullseye - CentOS 7 - Windows Server 2012/2016/2019).
* Specify the OS of the administration/package creation machine and the machine with the problematic agent, if applicable (Windows 7/10/11/Debian 11/etc.).
* Avoid asking multiple questions when opening a topic, otherwise it may be ignored. If there are multiple topics, open separate topics, preferably one after the other and not all at the same time (i.e., do not spam the forum).
* Include code snippets, screenshots, and other images directly in the post. Links to Pastebin, Bitly, and other third-party sites will be systematically removed.
* As with any community forum, support is provided voluntarily by members. If you require commercial support, you can contact Tranquil IT's sales department at 02.40.97.57.55
Locked
tjacquart
Messages: 5
Registration: May 27, 2015 - 10:40

June 12, 2015 - 08:58

Hello,
After installing WAPT on a 2003 server, it works without any problems. I did some testing and tried creating packages with a prefix. However, I can no longer delete them from the repository, and I would like to know if it's possible to remove them. Note that right-clicking and selecting "delete from repository" doesn't work for these packages, but this functionality works for duplicate packages in the main repository.
I've included a screenshot of my error to help you understand the issue better:

Picture

Thank you for your attention to my problem.
Sincerely,
Thibault Jacquart
rezidu
Messages: 21
Registration: March 16, 2015 - 10:21

June 16, 2015 - 12:15

Hello,

the right-click "delete" option probably doesn't work due to the "." at the beginning of your prefix.

To remove them, go directly to your server and delete the packages there.

For a Windows server -> C:\wapt\waptserver\repository\wapt
For a Debian server -> I don't know the exact path, but it should be similar (perhaps in the "etc" file).
Clem_you
Messages: 6
Registration: May 28, 2015 - 08:45

June 16, 2015 - 3:07 PM

For your information, a "." before a filename is equivalent to "hiding" a file, so your problem with not being able to delete it probably stems from that.

On Debian, to delete a package manually, you need to navigate to the directory containing the .wapt files:
michel@srv-wapt:~# cd /var/www/wapt

then, to see the contents of the directory (including hidden files):
michel@srv-wapt:~# ls -a

and finally to delete the desired package:
michel@srv-wapt:~# rm .fwapt-packagetodelete.wapt

However, it is necessary to run the following Python command again:
michel@srv-wapt:~# python /opt/wapt/wapt-scanpackages.py /var/www/wapt/

This allows, I believe, an update of the WAPT console on its next startup; without this command, your package might still be visible in the console.

Have a good day,
Clément.
Locked