Questions tagged [batch-delete]

14 questions
5
votes
1 answer

Foundation._GenericObjCError.NilError from core data batch delete

I am trying to use batch delete feature of core data. I have an entity named Car. That entity has a column name modelNumber as Int. I want to delete all cars which has modelNumber older than 2000. Here is my code: func…
Kapil Choubisa
  • 5,152
  • 9
  • 65
  • 100
2
votes
1 answer

Core data delete all relationship entity

Let say I have core data and three entity inside : Department, Employee, Inventory So every department could have more employees, and every employee could have more items that is record as inventory. Department <--->> Employee <---->> Inventory Now…
Marko Zadravec
  • 8,298
  • 10
  • 55
  • 97
1
vote
3 answers

How to delete smallest file if names are duplicate

I would like to clean up a folder with videos. I have a bunch of videos that were downloaded with different resolutions, so each file will start with the same name and then end with "_480p" or "_720p" etc. I just want to keep the largest file of…
AleXSR700
  • 11
  • 2
1
vote
2 answers

How to get a NSBatchDeleteRequest to delete and allow you to add back to an object again

I have the following code. let workorderFetchRequest = NSFetchRequest(entityName: "Workorders") let deleteWorkOrderRequest = NSBatchDeleteRequest(fetchRequest: workorderFetchRequest) //Deletes ALL…
Joseph Astrahan
  • 8,659
  • 12
  • 83
  • 154
0
votes
0 answers

Windows Batch Script find partial string within filename

I have been trying to create a batch script which will delete specific files from a location. The files that are NOT to be deleted are listed in a separate file called list.txt. So far it works if the entire filename + extension is written in the…
0
votes
1 answer

Batch delete parent and child objects where they share specific field value

I am trying to delete parent and child objects where the child 'order' with field orderShared shares 'orders' unique id. This is my order list order: [ orderid: 'id1', orderShared: 'idx1; name: 'smth'] orders: [ ordersid: 'idx1', name:…
0
votes
1 answer

How to do a Batch delete Firestore Documents in a Firebase cloud function

I'm using a firebase trigger that when a certain document is deleted, I can get the path to a collection of documents that I wish to be deleted using a firebase cloud function. So far after much headache my onDelete function works. on the trigger I…
0
votes
1 answer

How to store the split value in variable to subtract from another variable in batch script

I have few zip files in a folder with a number in it's name with underscore like C:\codedeploy\uat-prod\xxxx_123.zip. I would like to iterate through all files and get the number in file name into a variable(fileNumber) to substract it from a…
Parashuram
  • 303
  • 2
  • 6
  • 19
0
votes
1 answer

How to batch delete in Knex?

I'd like to perform batch deletion using knex.js. We have batchInsert as an API method , but nothing as far as batchDelete is concerned. I tried async iteration and delete each row separately. But it's not efficient ,because we have lot of server to…
User412387
  • 79
  • 1
  • 11
0
votes
1 answer

Delete data from D365 in Batch Request, getting the error 'Content-Type' Header is missing

I am trying to create an Azure function to delete some data from a Dynamics 365 CE instance. The plan is to use the D365 WebAPI and the Batch Operations request to establish this. Currently encountering an issue while sending a request after…
0
votes
1 answer

Mailchimp API : Batch Delete subscribers

Is there any reference to the PHP warpper that I can use to perform batch delete subscribers. we have around 100k+ spam subscribers in Mailchimp list that we need to delete using batch delete. Thanks
magento2new
  • 517
  • 1
  • 10
  • 38
0
votes
1 answer

Batch deletion for Spring data JPA

I have around 20k records to be deleted from Spring data JPA query , query is related to deleting all records before some particular date. I am using below query dao.deleteByCreationDateBefore(new Date()); I think this query hits database for each…
Khushi
  • 325
  • 1
  • 11
  • 32
0
votes
1 answer

cannot echo self delete command in another batch file

i have a file named as new.bat. using echo creates another "1.bat" batch file and writes code in it self delete command is also added in 1.bat 1.bat is run by start /MIN 1.bat my main file (new.bat) file is getting deleted and cmd process exit,…
Prayag
  • 211
  • 1
  • 13
-3
votes
1 answer

Batch script to remove files with sequential numbers in filename upto certain number

I have list of like 100 or so episodes of a serial whose names are in typical series-episode format with their subtitles named the same way like below: S01E01.mkv S01E02.mkv S01E03.mkv ..... ..... S01E01.srt S01E02.srt S01E03.srt Now the Video…
Vicky Dev
  • 1,893
  • 2
  • 27
  • 62