Search and delete Ansible JDK folders

We have path and various folders inside

adobe_tools_path: "/apps/cq5/tools/"

is it possible to just delete * JDK pattern folders over a loop?

My playbook does not match JDK folders as a pattern

- name: Find JDK folders
  find:
    paths: "{{ adobe_tools_path }}"
    patterns: "*jdk"
  register: wildcard_folders_to_delete

- name: Remove file JDK wildcard
  file:
    path: "{{ item.path }}"
    state: absent
  loop: "{{ wildcard_folders_to_delete.files |flatten(levels=1) }}"

magento2.3 – How to programmatically delete in Magento2 all configurable products with associated simple products from a specific category

How do I programmatically delete all configurable products with related simple products from certain categories in Magento2?

I found an old theme for Magento 1, but that's not what I need.

I know how to remove the simple and the configuration separately, but I do not understand how all configuration products and their associated simplples are removed with a specific category of magento2

Many thanks

macos – How can I delete some disk images in my recovery partition?

When I upgraded my MacBook Air from Sierra to High Sierra in mid-2011, I had some installation issues … that resulted in at least 2, possibly 3, disk images being created on my recovery drive.

I have disk image files that they do not own (such as a bunch of keys), and my system compensated them by putting them somewhere else.

The implications are bigger than I can list here … The two most problematic ones are:

/dev/disk4 in /Volumes and /dev/disk12 on /Volumes/untitled,

-bash-3.2# mount

/dev/disk1s1 on / (hfs, local, read-only)  
devfs on /dev (devfs, local, nobrowse)  
/dev/disk3 on /private/var/log (hfs, local, union, nobrowse)
/dev/disk4 on /Volumes (hfs, local, union, nobrowse)
/dev/disk5 on /private/var/tmp (hfs, local, union, nobrowse)
/dev/disk6 on /private/var/run (hfs, local, union, nobrowse) 
/dev/disk7 on /private/tmp (hfs, local, union, nobrowse)
/dev/disk8 on /System/Installation (hfs, local, union, nobrowse)
/dev/disk9 on /private/var/db (hfs, local, union, nobrowse)
/dev/disk10 on /private/var/folders (hfs, local, union, nobrowse)
/dev/disk11 on /private/var/root/Library (hfs, local, union, nobrowse)
/dev/disk13 on /private/var/root/Library/Containers (hfs, local, union, nobrowse)
/dev/disk14 on /Library/Preferences (hfs, local, union, nobrowse)
/dev/disk15 on /Library/Preferences/SystemConfiguration (hfs, local, union, nobrowse)
/dev/disk16 on /Library/Keychains (hfs, local, union, nobrowse)
/dev/disk17 on /private/var/tmp/RecoveryTemp (hfs, local, union, nobrowse)
/dev/disk18 on /private/var/tmp/InstallerCookies (hfs, local, union, nobrowse)
/dev/disk2 on /Volumes/Macintosh HD (hfs, local, journaled)
/dev/disk12 on /Volumes/untitled (hfs, local, nodev, nosuid, no owners)

To delete a custom file from the upload directory when you delete its post

I save an uploaded attachment in a custom directory below wp-content/uploads/my-directory/ and save its value in wp_postmeta Table. When I delete the post, the attached file is not deleted from the path.

So I tried to connect to that delete_post Tick ​​to clear the file from the path:

Unfortunately, the file is not deleted from the directory. πŸ™

What can I do?

SQL Server – Can I delete an overlapping index if the larger index is unique?

I have 2 non-clustered indexes:

IX1 = (col1)
IX2 = (col1), (col2) (unique).

I want to delete the IX1 index because the optimizer can stop using IX2 for the first column and stop using it if that query is true, so performance should not be affected. But I had a tormenting thought in mind, it could be that the 2nd index can not be used if it is marked as unique.

both columns are integers, col1 is a FK

iCloud – Hide / Delete album "Can not upload" in Mac Photos (Catalina)

I'm backing up my photo library on another Mac with Catalina (I have no intention of turning on iCloud photos – I have big issues, see discussion of iCloud photos that are not synced with the Mac).

The photos all look good, unless there is an album in the sidebar that can not be uploaded. If I remove the photos in this sidebar, they are also gone in All Photos! (This should not be the case for the album, but maybe this is something special).

The question is: how do I delete or hide this album?

8 – How do I delete all revisions of a specific content type except the current revision?

I have a very large website that contains about 400,000 story content type nodes. And these nodes have about 2,000,000 revisions. How can I clear all revisions except the current revision to reduce the size of my database?

I have tried node node revision delete module without success. Page gets a break.

8 – How do I delete all revisions except the current revision?

You can use the module to delete node revisions.

From the list of module properties:

Define the maximum number of revisions to keep per content type.

You can simply set the maximum amount to 1, and only the latest version will be kept.

TO UPDATE: If the admin interface crashes, try using the drush commands provided by the module.

drush node-revision-delete CONTENT_TYPE should work well.

SQL Server – How to deny a user access to tables (Select, Paste, Delete, Refresh), but grant some (Select)

I'm trying to deny a user access (select, insert, delete, update) to tables in my database, but I also want him to grant a choice to only some tables.
For this purpose, I have created a user with login and given him permission to the data header using the following code. I refused the user to select data from a table.

DENY SELECT ON "dbo"."Customer" TO "test"

He can not see the table, which is fine, but he can still choose the data

select * from Customer

I want selected data to be rejected from the table. I do not care if he sees the table.

For the further step, I deny users access to tables, but only a few views.