linux – Oracle – Delete dmp files from ASM diskgroup

I want to delete my export files daily from ASM diskgroup with a crontab job. I want to prepare a script for it.

ASMCMD> ls

exp1.dmp

exp2.dmp

exp3.dmp

exp4.dmp

ASMCMD> pwd

+DATA/EXP

How can I prepare this script? I prepared a template for it, but I couldn’t script it.

set_gridenv

asmcmd

cd +DATA/EXP

rm -rf exp*.dmp

exit

Best regards,

How do I remove Chrome policies off my Chrome OS/ How to delete the person managing this laptop

So you see here I got this from school and I need help getting chrome policies off or even manage this myself. My computer is managed and the problem is I looked youtube videos and tired to get a chrome policy uninstaller (Only works for windows or mac I think) and at this point im lost im restricted from going into google play or can I get un-managed

hard drive – How to find and delete .DS_Store files on local mounted disk?

On a Mac 10.14.6 I am using the following command to find and remove the annoying .DS_Store files. I want to find and delete these files only on the local mounted disk, not on any network drives:

find ~ -fstype local -name .DS_Store -exec /bin/rm -f -- {} ;

However, this command still reads mounted network drives (as I can tell from error messages regarding Input/Output errors on a network mounted drive). I do not want to search network mounted drives, this is why I did use the option -fstype local. But it seems not to work as expected.

Is there any other way I can find and delete all local occurrences of .DS_Store files?

I am aware of a similar question HERE, one solution is to use find to remove the files (which is exactly what I am trying), another answer is about to use fsevents to remove the .DS_Store files in real time. I tried the latter, but it does not work. These files are still being created. And also the defaults solution is not applicable for .DS_Store files created on the local mounted filesystem.

So at the moment I am left with no solution.

postgresql – How to delete all records which are not referenced from other tables

I have a table to which a bunch of other tables has an FK reference. Is there any way of deleting records from this table only if they are not being referenced?

I know that I can left join the referencing table and check for null, but I have about 10 tables (more will be added) with FKs referencing this table, so it would be cool to have a generic way of doing it.

There are often not more than a handful of records I need to remove. I suppose I could loop and try to remove each record individually and protect each deletion with BEGIN/EXCEPT, but that is an ugly concept.

Does this kind of functionality exist in Postgres? Kind of a soft delete, or delete-if-allowed.

Could not download or delete files on Windows 10

Two days ago, my computer suddenly could not download any files from any browsers and also I could not delete any files unless I drag the files inside the recycle bin.

I’ve tried so many tools like MalwareBytes, CCleaner, Registry Fixers, and so on but nothing fixes that. I am not sure whether it is because of some registry error or virus/malware? I’ve also checked Windows Security and Firewall and none of those are issues as well. I don’t want to reinstall the windows just for this and I don’t think it is a proper solution.

Thanks in advance.

postgresql – What files are safe to delete after upgrade?

This question is very similar to Recommended procedure to remove old files after major version PostgreSQL database cluster upgrade, but I did the upgrade in a different way, so the answer might be/probably is different.

I administer a database on a headless Ubuntu system with disks very near capacity. Therefore, when I upgraded my database from Postgres 10 to Postgres 12, I used the –link option.

/usr/lib/postgresql/12/bin/pg_upgrade --old-datadir=/var/lib/postgresql/10/main 
--new-datadir=/var/lib/postgresql/12/main (stuff deleted) --link 

This worked great, and now I have Postgres 12 running nicely. Time to cleanup.

I now have 2 folders in /var/lib/postgresql, called 10 and 12. The documentation suggests that these folders (or the files within them) are joined by a hard link, but doing the following suggests otherwise:

(deleted description of output of du that was misleading and did not say what I thought it said)

I’d like to clean this up as best I can, both because space is at a premium, and I know that there is a danger that future me will come along and delete 10 because we’re on 12.

In this situation, what do I need, and what can I delete? How can I make the folder structure as clear as possible to my future self?

Are there things elsewhere I can delete?