Mark for deletion 1s 8.3 programmatically. Accounting info. Automatic deletion of directories and documents

The 1C 8.3 program does not allow you to delete directories and documents in the database immediately, without additional checks. This is done in order to avoid possible mistakes... For example, if you want to delete an item that participates in a document, you cannot do this.

Let's consider how to delete documents and directories marked for deletion in 1c 8.3. Removal in 1C 8.2 is slightly different, but has a similar algorithm.

Removing objects in 1C occurs in two stages:

  1. Mark for deletion- setting the sign that a document, a reference book is planned to be deleted. Such an element is no different from others, it can also be selected in other objects.
  2. Direct removal- a special procedure during which the system monitors whether there are references to this object in the database. After link control 1C decides whether it is possible to delete an object marked for deletion or not.

Let's take a look at these two steps. The instruction is absolutely universal and is suitable for all configurations on 1C 8.3 - Accounting, ZUP, Trade Management, ERP, Management of a small company, and so on.

It is very easy to set a mark for deletion in 1C. It is enough to select the document or reference book of interest to us from the list and press the "delete" button:

Then you need to confirm your intention. A special note can now be seen in the log:

This means that the next time you delete objects through special processing, the system will offer to delete this item.

How to delete objects marked for deletion in 1C 8.3

The second stage is directly deleting what is already marked in the 1C database. This is done using a special service processing "Deleting marked objects". It is located on the "Administration" tab:

Get 267 1C video tutorials for free:

When opening 1C, it will give us two options to choose from - automatic deletion of all objects and selective:

Selective can come in handy to remove a specific object. For example, let's select "Automatic mode" and click "Delete". This will start deleting all objects marked for deletion in the system. At the end of the work, the system will issue conflict situations - objects that are marked for deletion, but participate in the accounting:

Here you need to make a choice. For example, we marked "Board 4000x200x20" for deletion, but it participates in the documents "Operation" and "". If we do not need these documents either, we simply mark them for deletion and click on the "Repeat deletion" button. If documents are needed, it is worth considering whether this item should not be marked for deletion.

In our example, I decided that I did not need these documents in the database either, I set a mark on them. As a result, the system removed both the interfering nomenclature and the unnecessary document:

That's all, now you also know how to remove documents and directories from 1C 8.3.

Automatic deletion of directories and documents

Almost every accountant in the course of his work is faced with the need to delete any document in 1C. If you do not know how to properly delete documents in 1C, our new article is especially for you.

Almost every accountant in the course of his work is faced with the need to delete any file and document. Deleting a document in 1C is not much different from a similar process when working with operating system Windows. There are a few important differences though:

    firstly, initially the document that needs to be deleted must be marked with a special sign (if compared with Windows OS, you can draw an analogy with moving a file to the trash);

    secondly, direct deletion occurs according to a strictly defined algorithm of actions.

If you are using version 1C 8.2, then in order to delete a file, you need:

    click on the required document right click mice;

    wait until the context menu appears;

    mark for deletion specific file, for which in the list that appears, select "set the mark for deletion";

    give your consent to the warning system.

You can do it easier and just after selecting the file to be deleted, press the delete key.


After all these manipulations, you need to go to the main menu item called "Operations" and select the function of deleting the marked objects. The system will give you a warning, with which you will need to agree, after which the program will continue.



Next, the system will open a window in front of you, where everything in the databases that are marked for deletion will be listed. In this list, you have to select the ones that you want to remove right now. It can be one document or a whole group. When the desired file or files are selected, you need to click the "Control" button. This is required in order to perform link checking.


In the process of these actions, it may turn out that, for example, 1C directories contain links to the document to be deleted, or there is a link in the tax invoice that leads to the file that you are going to delete (invoice). To be able to complete the deletion process, you will need to open tax invoices or directories, or those documents that contain links to the file to be deleted, and delete these same links. Beforehand, you will need to once again weigh the feasibility of such actions.




To avoid further confusion, later, after removing all links, you will need to re-check. And so on exactly until the check shows that there are no references to the file to be deleted in other documents. After that, the function will become available to you - deleting the marked objects. To complete the entire process, you will need to click on the "delete" button, after which the file will be deleted permanently.



Accountants in their work often meet unnecessary files... At the same time, version 1C: Enterprise 8.3 does not provide an opportunity to immediately delete reference elements and documents. This is understandable - the program insures you against erroneous decisions, but such a ban does not always suit the user.

Today we will dwell on this topic in more detail. So, how to correctly and safely remove marked objects from 1C?


Stages of removing objects in 1C


The process takes place in two stages, regardless of the version of the configuration - be it software for accounting or personnel services, for managers of a large enterprise or retail network.


1. It is necessary to tell the program with which document it is necessary to "part", for this we put a special mark for deletion. The deletion process checks if there are any links in the database to this document. At the end of the reconciliation, the PP gives permission or, on the contrary, prohibits this procedure.

Next, we proceed with the removal of the indicated materials. In 1C, it is not difficult to make the appropriate mark, the main thing is to find the required document in the list. Right-click to activate "Mark for deletion / Unmark" or just click on "Delete".


Fig 1. How to mark an object for deletion?




PP 1C is insured - a window pops up where he asks you to confirm your intention to "delete an object". As soon as you agree to continue the process, an “X” will appear in the log, which means it's time for the second stage.




Fig 2. Where is the "deleting marked objects" processing located?



2. PP 1C will provide a choice: delete all objects in automatic mode, or selectively. If you stop at the first option, the program will automatically delete all documents that you marked earlier.

This is not always convenient, since you will no longer be able to control the process, it will become uncontrollable. Most, for this reason, choose the second method - you yourself manually select the objects to be deleted. We put the cursor and go to the "Next" command, PP 1C will analyze the directory and present documents that are marked for recycling.


The next step is to designate a specific object to be deleted. We put the cursor on "Uncheck all checkboxes", find the required document (if necessary, open it), mark one object, or more and click "Delete".



Fig 3. Ability to selectively delete marked objects



The object was removed, and without any complications. It would seem that the process was successfully completed, but the 1C software announces a problem, and in the process of work it becomes clear that the object "sentenced" to disposal continues to take part in the documents carried out.

There is only one way out - along with the element, it is recommended to delete the files with which it is associated. If the described objects are important to the organization, then it is better not to run the procedure in order to avoid problems that may arise when data is merged in the future.


Developers have implemented 8.3 in 1C: Enterprise new way, thanks to which you can delete automatically.

The function is implemented through a scheduled task. PP 1C organizes the process itself according to a given schedule within a short time.

To configure this option, perform the following actions: go to "Administration" → "Delete marked objects". Check "Automatically delete marked objects on schedule".

It is possible to customize the schedule at your discretion, or work according to the existing settings. The advantage of this method is that the deletion of the marked elements will take place at night, that is, outside working hours, when the PP is not involved.


Fig 4. Configuring the removal of objects on a schedule



This method is not suitable for every user. Since the program will delete the object or directory without your control, in accordance with your notes, which, by the way, you may have put by mistake or by oversight. Remote program the object is hardly possible to track and recover.

Having studied the above, you can easily remove all unnecessary and mistakenly created by both you and your colleagues. But not all situations are solved so easily. V daily work you can face tasks that can be confused by their eccentricity and complexity. Here we recommend contacting professionals.


MasterSoft specialists have extensive experience in solving problems of any complexity. If you have any questions, then leave a request in the "Request a call" or "Ask a question" forms and we will call you back.

Every accountant is regularly faced with the need to remove from the accounting erroneously entered documents, reference data and accounting records. Deleting marked objects in 1C 8.3 is possible if their data is not used in another document. Next, we will talk about how to delete marked documents in 1C 8.3 in five steps.

Read in the article:

If you want to exclude from accounting, for example, an invoice, make sure that its data is not included in the reconciliation statement. The same rule applies to any other documents and reference books. For example, if you want to exclude an item from the "Nomenclature" directory, then make sure that this item is not used elsewhere, for example, in the invoice. Removal in 1C 8.3 is carried out in five steps.

First, we note that the removal of marked objects in 1C 8.3 takes place in two stages:

  1. You need to mark a document or operation that you plan to delete
  2. It is necessary to delete all marked objects

Step 1. Mark the object for deletion

Click on the document that you want to exclude from accounting. It will be marked in yellow. Press the right mouse button, and in the window that opens, select the "Mark for deletion" command. Next, go to the second step.

Step 2. Open the "Delete marked objects" window

Go to the "Administration" section (1) and click on the link "Deleting marked objects" (2).

Step 3. Select a mode

Deletion of marked objects in 1C 8.3 can be carried out in two modes:

  • automatic deletion of all marked objects;
  • selective removal of objects.

In automatic mode, the program will process all marked objects and delete those that are not related to other documents. Selective deletion allows you to delete objects of your choice from the list. The list will be generated by the program.

For automatic deletion, select "Automatic deletion of all marked objects" (3) and click on the "Delete" button (4). All objects marked for deletion will be excluded, provided that their data is not used by the program in other places:

For selective deletion, select "Selective deletion of objects" (5) and click the "Next" button (6):

Step 4. Select objects to delete

If you use the selective deletion mode, then after clicking the "Next" button (6), a list of all documents that you marked for deletion will open, it looks like this:

Check the boxes (7) to mark everything that you want to delete. After that, click the "Delete" button (8):

If some documents are not deleted, go to the next step.

Step 5. What to do if not all documents have been deleted

The object cannot be deleted if the data from it is used by the program elsewhere. In this case, the program will display a list of unremoved objects. For example, if you try to delete property (9), which is in the receipt (10), you will see a window like this:

In the left half of the window you see a list of unremoved objects (9), on the right a list of documents that contain their data (10). They do not allow excluding an object from the program, so they also need to be marked for deletion. In our case, to delete the item "Battery ...." (9), it is necessary to mark for deletion the invoice "Receipt 3 from 06/25/2018." (10), and then repeat the procedure, starting from step 2.

After you have made changes to the accounting, check any reports that they may have affected. If, as a result, accounting or tax accounting data have changed, it may be necessary to provide the tax office with updated declarations or calculations. If an adjustment in accounting has led to an increase in the amount of taxes payable to the budget, then first pay the difference in taxes and penalties, and then submit the revised declarations.

Suitable for 1C 8.3 ZUP, 1C 8.3 Trade Management, 1C 8.3 Accounting and other configurations 1C 8.3. Let's study the launch mode of the 1C 8.3 program Managed application.

Not everyone knows that this treatment has actually replaced the treatment. Universal selection and processing of objects. A mark for deletion in 1C 8.3 is considered a service attribute of the object. Therefore, we can talk about changing the details of the document if you want to mark the document for deletion.

How to mark for deletion in the document journal

It makes sense to use the processing discussed above in 1C 8.3 for complex selections and a large volume of deleted documents. If you delete documents from one document journal, you can proceed as follows.

Step 1

V open journal of the Implementation documents, we set the selection for the contractor "Plotnik +" and the Organization "Ivanov IP":

Step 2

Push Ctrl + A- we mark all selection documents, then with the pressed key Ctrl click on the document that you do not want to delete. For example, sales of less than 10,000 rubles. Thus selected required documents according to the example, which are highlighted in color (in this case, yellow):

Step 3

Right-click on the list. In the dropdown context menu(or by button More) select the desired command Mark for deletion / Unmark:

We get the result - 6 selected documents are marked for deletion:

How to Mark for Deletion Using Generic Pick and Handle Processing

For subscribers of Information Technology Support (ITS) there is a special processing GenericObject Selection & Processing.epf... You can find it on the ITS disk in the \ 1CITS \ EXE \ ExtReps \ Unireps82 \ UniversalSelection \ directory or by searching in online versions ITS.

True, it only works when you start 1C 8.3 in the normal application mode. For a managed application, you can find similar treatments on developer sites.

Let's use processing for ITS subscribers. To do this, we will configure the launch of the 1C 8.3 program in normal mode. Let's consider an example in the program 1C 8.3 ZUP 3.0. We launch the 1C ZUP 3.0 program in the Configurator mode. On the menu Service Options on the bookmark Launch of 1C Enterprise we put a point, as in the picture below, at the application Fat client(regular application):

Click apply. We start the program 1C ZUP 3.0 (8.3) in the mode Company(you can use the F5 button from the configurator). Now you can from the menu File - Open select processing from the directory where it is installed (or you can connect it).

The problem to be solved: Mark all documents for deletion Calculation of salaries and contributions for the Main division for the period February-June 2016 organization Ideal in 1C 8.3 ZUP 3.0

Step 1

In the Search object window, start typing the word “accrual”. The 1C ZUP 3.0 (8.3) program will offer options in the drop-down list. Selecting an object Calculation of salaries and contributions:

Step 2

On the Selection tab by the values ​​of the requisites by the “green plus button”, add selections, while setting the condition: date> 02/01/2016, since in the 1C 8.3 ZUP base the latest documents for June 2016:

Step 3

Click on the button Find Objects. We get the result. If we do not want to mark some object for deletion, then uncheck the box next to it:

Step 4

Go to the bookmark Processing. Choosing processing Mark for deletion, by clicking on the arrow, we move it to the right side of the window - Selected treatments. Click Run. We get the result:

Step 5

Next, open the Payroll journal. We see that all documents for calculating salaries from February for the Ideal organization (except for the document on not the main subdivision) are marked for deletion. Let's open the document not marked for deletion. We see that it is formed by Division 2:

How to mark all documents for deletion at once without referential integrity control

For example, this method can be used when a 1C 8.3 user decided to completely clear the 1C 8.3 base of documents, and use the existing directories and settings to keep records of another organization.

In the Main Menu (triangle in the upper left corner), select All functions... Find processing

On a bookmark Deleting data of this processing, you can select not only all the documents to be deleted at once, but also specify certain types of documents, the deletion period. By default, there is a check mark in 1C 8.3 Delete objects for which you have access rights:

We tick all documents. All that remains is to press the button Delete. But, we draw your attention to the fact that without control of referential integrity, it makes sense to delete configuration objects when cleaning the 1C 8.3 database or when debugging the transfer (warning notice from the developers). In other cases, it is better to mark objects for deletion.